Re: `--' in command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Pogonyshev <pogonyshev@xxxxxxx> writes:

> I noticed that `configure' scripts yell at `--' in command line.

Thanks for pointing that out.  I installed this:

2004-08-20  Paul Eggert  <eggert@xxxxxxxxxxx>

	* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
	handle "--" as per POSIX.  Suggested by Paul Pogonyshev.

Index: general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.833
retrieving revision 1.834
diff -p -u -r1.833 -r1.834
--- general.m4	20 Aug 2004 19:58:07 -0000	1.833
+++ general.m4	20 Aug 2004 22:54:51 -0000	1.834
@@ -543,6 +543,7 @@ AC_SUBST([infodir],        ['${prefix}/i
 AC_SUBST([mandir],         ['${prefix}/man'])dnl
 
 ac_prev=
+ac_dashdash=
 for ac_option
 do
   # If the previous option needs an argument, assign it.
@@ -556,7 +557,9 @@ do
 
   # Accept the important Cygnus configure options, so we can diagnose typos.
 
-  case $ac_option in
+  case $ac_dashdash$ac_option in
+  --)
+    ac_dashdash=yes ;;
 
   -bindir | --bindir | --bindi | --bind | --bin | --bi)
     ac_prev=bindir ;;


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux