comparison configure.ac @ 4656:79d1a0524b5f

Use correct separator when registering options to _AC_USER_OPTS.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sun, 26 Jul 2009 19:58:40 +0900
parents 6a6689b96f00
children 32be564c53dd
comparison
equal deleted inserted replaced
4655:13273cffca2a 4656:79d1a0524b5f
252 --without-FEATURE do not use FEATURE (same as --with-FEATURE=no) 252 --without-FEATURE do not use FEATURE (same as --with-FEATURE=no)
253 --disable-FEATURE alias for --without-FEATURE]])dnl 253 --disable-FEATURE alias for --without-FEATURE]])dnl
254 m4_divert_once([HELP_ENABLE], m4_bpatsubst([[$2]],[--enable\([^ ]+\) ],[--with\1 ]))dnl 254 m4_divert_once([HELP_ENABLE], m4_bpatsubst([[$2]],[--enable\([^ ]+\) ],[--with\1 ]))dnl
255 dnl Register both forms with the option checking list. 255 dnl Register both forms with the option checking list.
256 dnl Options are only checked with autoconf > 2.61. 256 dnl Options are only checked with autoconf > 2.61.
257 m4_append_uniq([_AC_USER_OPTS], [enable_]m4_bpatsubst([$1], -, _), [:])dnl 257 m4_append_uniq([_AC_USER_OPTS], [enable_]m4_bpatsubst([$1], -, _), [
258 m4_append_uniq([_AC_USER_OPTS], [with_]m4_bpatsubst([$1], -, _), [:])dnl 258 ])dnl
259 m4_append_uniq([_AC_USER_OPTS], [with_]m4_bpatsubst([$1], -, _), [
260 ])dnl
259 # If --with-$1 or --without-$1 were given then copy the value to the 261 # If --with-$1 or --without-$1 were given then copy the value to the
260 # equivalent enable_$1 variable. 262 # equivalent enable_$1 variable.
261 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then 263 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then
262 [enable_]m4_bpatsubst([$1], -, _)="[$with_]m4_bpatsubst([$1], -, _)" 264 [enable_]m4_bpatsubst([$1], -, _)="[$with_]m4_bpatsubst([$1], -, _)"
263 fi; 265 fi;