From: K. Richard Pixley Date: Thu, 19 Dec 1991 23:55:06 +0000 (+0000) Subject: added -V for version number option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c72405d836b71de8ba71290d4c2b855179c835c;p=binutils-gdb.git added -V for version number option --- diff --git a/ChangeLog b/ChangeLog index e3b3a8baec8..3d9038f4fa1 100644 --- 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. diff --git a/configure b/configure index 5f833ef8fd9..09d1c166807 100755 --- 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