summaryrefslogtreecommitdiff
path: root/tool/m4/ruby_append_options.m4
blob: 14213111ca271ca2db0b23a4592e72d5536eda70 (plain)
1
2
3
4
5
6
7
dnl -*- Autoconf -*-
AC_DEFUN([RUBY_APPEND_OPTIONS],
	[# RUBY_APPEND_OPTIONS($1)
	for rb_opt in $2; do
	AS_CASE([" [$]{$1-} "],
	[*" [$]{rb_opt} "*], [], ['  '], [ $1="[$]{rb_opt}"], [ $1="[$]$1 [$]{rb_opt}"])
	done])dnl