mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-31 15:00:26 +08:00
Fix parsing of empty variable settings on the command line.
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Work around expr bug returning 0 instead of the empty string. * lib/autotest/general.m4 (AT_INIT): Likewise. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
parent
e4d629f5b5
commit
f3c508423f
@ -1,5 +1,10 @@
|
||||
2010-07-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
Fix parsing of empty variable settings on the command line.
|
||||
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Work around
|
||||
expr bug returning 0 instead of the empty string.
|
||||
* lib/autotest/general.m4 (AT_INIT): Likewise.
|
||||
|
||||
Fix typo in the manual.
|
||||
* doc/autoconf.texi (AC_ACT_IFELSE vs AC_TRY_ACT): Fix typo.
|
||||
|
||||
|
@ -613,8 +613,9 @@ do
|
||||
fi
|
||||
|
||||
case $ac_option in
|
||||
*=*) ac_optarg=`expr "X$ac_option" : '[[^=]]*=\(.*\)'` ;;
|
||||
*) ac_optarg=yes ;;
|
||||
*=?*) ac_optarg=`expr "X$ac_option" : '[[^=]]*=\(.*\)'` ;;
|
||||
*=) ac_optarg= ;;
|
||||
*) ac_optarg=yes ;;
|
||||
esac
|
||||
|
||||
# Accept the important Cygnus configure options, so we can diagnose typos.
|
||||
|
@ -474,8 +474,8 @@ do
|
||||
fi
|
||||
|
||||
case $at_option in
|
||||
*=*) at_optarg=`expr "x$at_option" : 'x[[^=]]*=\(.*\)'` ;;
|
||||
*) at_optarg= ;;
|
||||
*=?*) at_optarg=`expr "X$at_option" : '[[^=]]*=\(.*\)'` ;;
|
||||
*) at_optarg= ;;
|
||||
esac
|
||||
|
||||
# Accept the important Cygnus configure options, so we can diagnose typos.
|
||||
|
Loading…
x
Reference in New Issue
Block a user