]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_PARSEARGS): Warn about multiple non-option args.
authorDavid MacKenzie <djm@djmnet.org>
Tue, 29 Mar 1994 00:40:23 +0000 (00:40 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Tue, 29 Mar 1994 00:40:23 +0000 (00:40 +0000)
acgeneral.m4
lib/autoconf/general.m4

index 8b9f1bcca5ac2eb33c85b34fb19a93a66a0d2702..17c4a7768e126f75a066917f23494ff94af3b629 100644 (file)
@@ -105,6 +105,7 @@ changequote([,])dnl
 build=NONE
 exec_prefix=
 host=NONE
+nonopt=NONE
 norecursion=
 prefix=
 program_prefix=
@@ -287,6 +288,10 @@ changequote(,)dnl
 changequote([,])dnl
       AC_WARN($ac_option: invalid host type)
     fi
+    if test "x$nonopt" -ne xNONE; then
+      AC_WARN(can only configure for one host and one target at a time)
+    fi
+    nonopt="$ac_option"
     ;;
 
   esac
index 8b9f1bcca5ac2eb33c85b34fb19a93a66a0d2702..17c4a7768e126f75a066917f23494ff94af3b629 100644 (file)
@@ -105,6 +105,7 @@ changequote([,])dnl
 build=NONE
 exec_prefix=
 host=NONE
+nonopt=NONE
 norecursion=
 prefix=
 program_prefix=
@@ -287,6 +288,10 @@ changequote(,)dnl
 changequote([,])dnl
       AC_WARN($ac_option: invalid host type)
     fi
+    if test "x$nonopt" -ne xNONE; then
+      AC_WARN(can only configure for one host and one target at a time)
+    fi
+    nonopt="$ac_option"
     ;;
 
   esac