From: David MacKenzie Date: Tue, 29 Mar 1994 00:40:23 +0000 (+0000) Subject: (AC_PARSEARGS): Warn about multiple non-option args. X-Git-Tag: fsf-origin~736 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a94b65cb3c6c6313e3ac455d9ce73dc6246c30e;p=thirdparty%2Fautoconf.git (AC_PARSEARGS): Warn about multiple non-option args. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index 8b9f1bcca..17c4a7768 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -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 diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 8b9f1bcca..17c4a7768 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -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