aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-12-19 23:55:06 +0000
committerK. Richard Pixley <rich@cygnus>1991-12-19 23:55:06 +0000
commit0c72405d836b71de8ba71290d4c2b855179c835c (patch)
treeba70768768ec73f9382800298079f1996a7c29ac
parent90f661962b33b275e593a1b074c0dabac75af47c (diff)
downloadgdb-0c72405d836b71de8ba71290d4c2b855179c835c.zip
gdb-0c72405d836b71de8ba71290d4c2b855179c835c.tar.gz
gdb-0c72405d836b71de8ba71290d4c2b855179c835c.tar.bz2
added -V for version number option
-rw-r--r--ChangeLog4
-rwxr-xr-xconfigure17
2 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index e3b3a8b..3d9038f 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 5f833ef..09d1c166 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