]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_OUTPUT): Rewrite so that the "$@" problem does not come up.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Apr 2002 19:05:01 +0000 (19:05 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Apr 2002 19:05:01 +0000 (19:05 +0000)
lib/autoconf/status.m4

index 3f81fe4f0e4744e943bb0d892c6cf4175b600398..c9b0fc35c276dcd11a22a69123c09e2e76509f2b 100644 (file)
@@ -1382,17 +1382,20 @@ do
   --*=*)
     ac_option=`expr "x$[1]" : 'x\([[^=]]*\)='`
     ac_optarg=`expr "x$[1]" : 'x[[^=]]*=\(.*\)'`
-    shift
-    set dummy "$ac_option" "$ac_optarg" ${1+"$[@]"}
-    shift
+    ac_shift=:
+    ;;
+  -*)
+    ac_option=$[1]
+    ac_optarg=$[2]
+    ac_shift=shift
     ;;
-  -*);;
   *) # This is not an option, so the user has probably given explicit
      # arguments.
+     ac_option=$[1]
      ac_need_defaults=false;;
   esac
 
-  case $[1] in
+  case $ac_option in
   # Handling of the options.
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
@@ -1412,12 +1415,12 @@ Try `$[0] --help' for more information.]);;
   --debug | --d* | -d )
     debug=: ;;
   --file | --fil | --fi | --f )
-    shift
-    CONFIG_FILES="$CONFIG_FILES $[1]"
+    $ac_shift
+    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     ac_need_defaults=false;;
   --header | --heade | --head | --hea )
-    shift
-    CONFIG_HEADERS="$CONFIG_HEADERS $[1]"
+    $ac_shift
+    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
     ac_need_defaults=false;;
 
   # This is an error.