diff options
Diffstat (limited to 'tool/m4/ruby_prepend_options.m4')
-rw-r--r-- | tool/m4/ruby_prepend_options.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tool/m4/ruby_prepend_options.m4 b/tool/m4/ruby_prepend_options.m4 new file mode 100644 index 0000000000..61299d226e --- /dev/null +++ b/tool/m4/ruby_prepend_options.m4 @@ -0,0 +1,7 @@ +AC_DEFUN([RUBY_PREPEND_OPTIONS], + [# RUBY_PREPEND_OPTIONS($1) + unset rb_opts; for rb_opt in $2; do + AS_CASE([" [$]{rb_opts} [$]{$1-} "], + [*" [$]{rb_opt} "*], [], [' '], [ $1="[$]{rb_opt}"], [ rb_opts="[$]{rb_opts}[$]{rb_opt} "]) + done + $1="[$]{rb_opts}[$]$1"])dnl |