aboutsummaryrefslogtreecommitdiffstats
path: root/tool/m4/ruby_prepend_option.m4
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 07:05:25 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 07:05:25 +0000
commitd5ff114ec1869cd6bf27731e37fd6e1a6dbe6eb2 (patch)
tree73693b397f6eeae289b23379ce433dc6d3691419 /tool/m4/ruby_prepend_option.m4
parent2d887b3e9130fc22bacd771711d8bd4a2f06b930 (diff)
downloadruby-d5ff114ec1869cd6bf27731e37fd6e1a6dbe6eb2.tar.gz
refactor split configure.ac into files
This does not (yet) change anything. The generated configure file is the identical to previous one (except several empty lines added and deleted). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/m4/ruby_prepend_option.m4')
-rw-r--r--tool/m4/ruby_prepend_option.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/m4/ruby_prepend_option.m4 b/tool/m4/ruby_prepend_option.m4
new file mode 100644
index 0000000000..c1d28528c5
--- /dev/null
+++ b/tool/m4/ruby_prepend_option.m4
@@ -0,0 +1,4 @@
+AC_DEFUN([RUBY_PREPEND_OPTION],
+ [# RUBY_PREPEND_OPTION($1)
+ AS_CASE([" [$]{$1-} "],
+ [*" $2 "*], [], [' '], [ $1="$2"], [ $1="$2 [$]$1"])])dnl