autoconf-patches
[Top][All Lists]
Advanced

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

Re: `--' in command line


From: Paul Eggert
Subject: Re: `--' in command line
Date: Fri, 20 Aug 2004 15:55:51 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Paul Pogonyshev <address@hidden> writes:

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

Thanks for pointing that out.  I installed this:

2004-08-20  Paul Eggert  <address@hidden>

        * 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 ;;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]