diff options
author | K. Richard Pixley <rich@cygnus> | 1991-12-19 23:55:06 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-12-19 23:55:06 +0000 |
commit | 0c72405d836b71de8ba71290d4c2b855179c835c (patch) | |
tree | ba70768768ec73f9382800298079f1996a7c29ac | |
parent | 90f661962b33b275e593a1b074c0dabac75af47c (diff) | |
download | gdb-0c72405d836b71de8ba71290d4c2b855179c835c.zip gdb-0c72405d836b71de8ba71290d4c2b855179c835c.tar.gz gdb-0c72405d836b71de8ba71290d4c2b855179c835c.tar.bz2 |
added -V for version number option
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | configure | 17 |
2 files changed, 15 insertions, 6 deletions
@@ -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. @@ -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 |