* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
Reported by Bernard Dautrevaux.
+2000-09-19 Akim Demaille <akim@epita.fr>
+
+ * autoconf.sh (optarg): More robust expr invocation.
+ * autoreconf.sh: Likewise.
+ * autoupdate.sh: Likewise.
+ * autoheader.sh: Likewise.
+ Reported by Bernard Dautrevaux.
+
2000-09-19 Pavel Roskin <proski@gnu.org>
* acgeneral.m4 (AU_ALIAS): Do not use `defn' since then autoupdate
# Parse command line.
while test $# -gt 0 ; do
- optarg=`expr "$1" : '--[^=]*=\(.*\)' \| \
- "$1" : '-.\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
# Parse command line.
while test $# -gt 0 ; do
- optarg=`expr "$1" : '--[^=]*=\(.*\)' \| \
- "$1" : '-.\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
# Parse command line.
while test $# -gt 0 ; do
- optarg=`expr "$1" : '--[^=]*=\(.*\)' \| \
- "$1" : '-.\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
# Parse command line.
while test $# -gt 0 ; do
- optarg=`expr "$1" : '--[^=]*=\(.*\)' \| \
- "$1" : '-.\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
# Parse command line.
while test $# -gt 0; do
- optarg=`expr "$1" : '-[^=]*=\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case "$1" in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
localdir=$1
shift ;;
- --macrodir=* )
- autoconf_dir=$optarg
- shift ;;
--macrodir | -m )
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
-
- --m4dir=* )
- m4dir=$optarg
+ --macrodir=* | -m* )
+ autoconf_dir=$optarg
shift ;;
+
--m4dir | -M )
test $# = 1 && eval "$exit_missing_arg"
shift
m4dir=$1
shift ;;
+ --m4dir=* | -M* )
+ m4dir=$optarg
+ shift ;;
--force | -f )
force=:; shift ;;
# Parse command line.
while test $# -gt 0; do
- optarg=`expr "$1" : '-[^=]*=\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case "$1" in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
localdir=$1
shift ;;
- --macrodir=* )
- autoconf_dir=$optarg
- shift ;;
--macrodir | -m )
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
-
- --m4dir=* )
- m4dir=$optarg
+ --macrodir=* | -m* )
+ autoconf_dir=$optarg
shift ;;
+
--m4dir | -M )
test $# = 1 && eval "$exit_missing_arg"
shift
m4dir=$1
shift ;;
+ --m4dir=* | -M* )
+ m4dir=$optarg
+ shift ;;
--force | -f )
force=:; shift ;;
# Parse command line.
while test $# -gt 0 ; do
- optarg=`expr "$1" : '--[^=]*=\(.*\)' \| \
- "$1" : '-.\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
# Parse command line.
while test $# -gt 0 ; do
- optarg=`expr "$1" : '--[^=]*=\(.*\)' \| \
- "$1" : '-.\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
# Parse command line.
while test $# -gt 0; do
- optarg=`expr "$1" : '-[^=]*=\(.*\)'`
+ optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
+ "x$1" : 'x-.\(.*\)'`
case "$1" in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
localdir=$1
shift ;;
- --macrodir=* )
- autoconf_dir=$optarg
- shift ;;
--macrodir | -m )
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
-
- --m4dir=* )
- m4dir=$optarg
+ --macrodir=* | -m* )
+ autoconf_dir=$optarg
shift ;;
+
--m4dir | -M )
test $# = 1 && eval "$exit_missing_arg"
shift
m4dir=$1
shift ;;
+ --m4dir=* | -M* )
+ m4dir=$optarg
+ shift ;;
--force | -f )
force=:; shift ;;