]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix parsing of empty variable settings on the command line.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 20 Jul 2010 05:58:14 +0000 (07:58 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 20 Jul 2010 13:10:39 +0000 (07:10 -0600)
* 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>
ChangeLog
lib/autoconf/general.m4
lib/autotest/general.m4

index 14feb764d3c14a6df9c17deac6818f862bfe1495..76e77c3597c507f065650d7c6cae3e4494e29b09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index 477c4ab8eca296ef09504fd3ebd040c87df6c43f..bb188459e7683a570f72bb0429fd18b2286ad458 100644 (file)
@@ -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.
index 2b46705ff73e52c71611d83240393e984a747462..e27d6011a1d5f11a8d119f06c9eb5f7e5f6a5e60 100644 (file)
@@ -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.