* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos

in previous change, which caused test failures.
This commit is contained in:
Paul Eggert 2006-11-17 00:37:17 +00:00
parent ac3beb3155
commit 7f650f671a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
in previous change, which caused test failures.
2006-11-16 Stepan Kasal <kasal@ucw.cz>
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out

View File

@ -925,12 +925,12 @@ m4_divert_pop([PARSE_ARGS])dnl
#
m4_define([_AC_INIT_PARSE_ENABLE],
[-$1-* | --$1-*)
ac_$2=`expr "x$ac_option" : 'x-*$1-\(.*\)'`
ac_$2=`expr "x$ac_option" : 'x-*$1-\(m4_bmatch([$1], [^\(enable\|with\)$], [[[^=]]], [.])*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_$2" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
AC_MSG_ERROR([invalid $2 name: $ac_$2])
[ac_$2=`echo $ac_$2 | sed 's/[-.]/_/g'`]
eval with_$ac_$2=$3 ;;dnl
eval m4_bmatch([$1], [^\(enable\|disable\)$], [enable], [with])_$ac_$2=$3 ;;dnl
])