+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.
#targetsubdir=
undefinedargs=
verbose=
+version="$Revision$"
x11=default
# or maybe grab from gcc/version.c
-v | -verbose | --v)
verbose=${arg}
;;
+ -version | -V | --version | --V)
+ echo "This is Cygnus Configure version" ${version}
+ exit 0
+ ;;
-x | --x) ;;
-* | --*)
(echo ;
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
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/'`
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/'`
# 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