logo       

Re: `--' in command line: msg#00061

sysutils.autoconf.general

Subject: Re: `--' in command line

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





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise