revised option parsing.
authorK. Richard Pixley <rich@cygnus>
Tue, 6 Aug 1991 19:26:01 +0000 (19:26 +0000)
committerK. Richard Pixley <rich@cygnus>
Tue, 6 Aug 1991 19:26:01 +0000 (19:26 +0000)
configure

index 072d63940db8dbb3b508c254f2096f79af1be4bd..d5613206fbee5953a3bf9f0d95c6cf94b8657292 100755 (executable)
--- a/configure
+++ b/configure
@@ -67,14 +67,13 @@ verbose=
 for arg in $*;
 do
        case ${arg} in
-       -ansi | +ansi)
+       -ansi | +a*)
                ansi=true
                ;;
        -destdir=* | +destdir=* | +destdi=* | +destd=* | +dest=* | +des=* | +de=* | +d=*)
                destdir=`echo ${arg} | sed 's/[+-]d[a-z]*=//'`
                ;;
-       -forcesubdirs | +forcesubdirs | +forcesubdir | +forcesubdi | +forcesubd \
-       | +forcesub | +forcesu | +forces | +force | +forc | +for | +fo | +f)
+       -forcesubdirs | +f*)
                forcesubdirs=${arg}
                ;;
        -languages=* | +languages=* | +language=* | +languag=* \
@@ -82,25 +81,25 @@ do
                | +l=*)
                languages="${languages} `echo ${arg} | sed 's/[+-]l[a-z]*=//'`"
                ;;
-       -gas | +gas | +ga | +g)
+       -gas | +g)
                gas=yes
                ;;
-       -help | +h | +help)
+       -help | +h*)
                fatal=true
                ;;
-       -nfp | +nfp | +nf | +n)
+       -nfp | +nf*)
                nfp=yes
                ;;
-       -norecurse | +norecurse)
+       -norecurse | +no*)
                norecurse=true
                ;;
-       -rm | +rm)
+       -rm | +r*)
                removing=${arg}
                ;;
 #      -srcdir=* | +srcdir=* | +srcdi=* | +srcd=* | +src=* | +sr=* | +s=*)
 #              srcdir=`echo ${arg} | sed 's/[+-]s[a-z]*=//'`
 #              ;;
-       -target=* | +target=* | +targe=* | +targ=* | +tar=* | +ta=* | +t=*)
+       -target=* | +target=* | +targe=* | +targ=* | +tar=* | +ta=*)
                if [ -n "${targets}" ] ; then
                        forcesubdirs="+forcesubdirs"
                fi
@@ -108,10 +107,10 @@ do
                newtargets="${targets} `echo ${arg} | sed 's/[+-]t[a-z]*=//'`"
                targets="${newtargets}"
                ;;
-       -template=* | +template=*)
+       -template=* | +template=* | +templat=* | +templa=* | +templ=* | +temp=* | +tem=* | +te=*)
                template=`echo ${arg} | sed 's/[+-]template=//'`
                ;;
-       +verbose | +verbos | +verbo | +verb | +ver | +ve | +v)
+       -verbose | +v*)
                verbose=${arg}
                ;;
        -* | +*)
@@ -617,7 +616,10 @@ exit 0
 
 #
 # $Log$
-# Revision 1.23  1991/08/06 19:12:32  rich
+# Revision 1.24  1991/08/06 19:26:01  rich
+# revised option parsing.
+#
+# Revision 1.23  1991/08/06  19:12:32  rich
 # Host-level GNUmakefiles.
 #
 # Revision 1.22  1991/07/20  01:22:30  rich