added -V for version number option
authorK. Richard Pixley <rich@cygnus>
Thu, 19 Dec 1991 23:55:06 +0000 (23:55 +0000)
committerK. Richard Pixley <rich@cygnus>
Thu, 19 Dec 1991 23:55:06 +0000 (23:55 +0000)
ChangeLog
configure

index e3b3a8baec8d146245eda12bf2611555e91d8f01..3d9038f4fa1882b45c79f36aaa3b7f9b5d97c9a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Dec 19 15:54:29 1991  K. Richard Pixley  (rich at cygnus.com)
+
+       * configure: added -V for version number option.
+
 Wed Dec 18 15:39:34 1991  K. Richard Pixley  (rich at cygnus.com)
 
        * DOC.configure, cfg-paper.texi: revised, updated, and texinfo'd.
index 5f833ef8fd978ccd909464d1b150d813c4d2334a..09d1c166807992642676397fb7bed4e6dc0d5b10 100755 (executable)
--- a/configure
+++ b/configure
@@ -85,6 +85,7 @@ targets=
 #targetsubdir=
 undefinedargs=
 verbose=
+version="$Revision$"
 x11=default
 
 # or maybe grab from gcc/version.c
@@ -244,6 +245,10 @@ do
                -v | -verbose | --v)
                        verbose=${arg}
                        ;;
+               -version | -V | --version | --V)
+                       echo "This is Cygnus Configure version" ${version}
+                       exit 0
+                       ;;
                -x | --x) ;;
                -* | --*)
                        (echo ;
@@ -343,12 +348,12 @@ if [ -n "${fatal}" -o "${hosts}" = "help" ] ; then
        exit 1
 fi
 
-configsubr=`echo ${progname} | sed 's/configure$/config.subr/'`
+configsub=`echo ${progname} | sed 's/configure$/config.sub/'`
 
-if (${configsubr} `echo ${hosts} | sed -e 's/ .*//'`) >/dev/null 2>&1 ; then
+if (${configsub} `echo ${hosts} | sed -e 's/ .*//'`) >/dev/null 2>&1 ; then
        true
 else
-       echo '***' cannot find config.subr.
+       echo '***' cannot find config.sub.
        exit 1
 fi
 
@@ -414,7 +419,7 @@ for host in ${hosts} ; do
 
        host_alias=${host}
 
-       result=`${configsubr} ${host}`
+       result=`${configsub} ${host}`
        host_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
        host_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
        host_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
@@ -430,7 +435,7 @@ for host in ${hosts} ; do
        for target in ${targets} ; do
 
                target_alias=${target}
-               result=`${configsubr} ${target}`
+               result=`${configsub} ${target}`
                target_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
                target_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
                target_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
@@ -588,7 +593,7 @@ for host in ${hosts} ; do
                        # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
                        if [ "${host}" != "${target}" ] ; then
                                echo "CROSS=-DCROSS_COMPILE" > ${Makefile}
-                               echo "ALL=start.encap" >> ${Makefile}
+                               echo "ALL=all.cross" >> ${Makefile}
                        else
                                echo "ALL=all.internal" > ${Makefile}
                        fi