diff options
author | manfred <manfred@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-24 06:16:19 +0000 |
---|---|---|
committer | manfred <manfred@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-24 06:16:19 +0000 |
commit | c2544360b7028b3c80e262ee106a96fee3147917 (patch) | |
tree | 3409e844fbcc8a605cb26bbf1a75caad955bf377 /libf2c/configure | |
parent | d9f2c557d626e783c2fb942ec252bffaf2f97019 (diff) | |
download | gcc-c2544360b7028b3c80e262ee106a96fee3147917.tar.gz |
d
egcs/ChangeLog:
1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
* configure (gcc_version): Initialize properly depending on
how and where configure is started.
(recursion line): Pass a --with-gcc-version=${gcc_version}
to configures in subdirs.
egcs/libf2c/ChangeLog.egcs:
1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
* Makefile.in (version): Rename to gcc_version.
* configure.in (version): Likewise.
(gcc_version): Add code to use an option passed from parent configure.
* configure: Regenerate.
egcs/libio/ChangeLog:
1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
* config.shared (FLAGS_TO_PASS): Add gcc_version.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libf2c/configure')
-rwxr-xr-x | libf2c/configure | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/libf2c/configure b/libf2c/configure index cef44912395..63163a84166 100755 --- a/libf2c/configure +++ b/libf2c/configure @@ -1862,7 +1862,16 @@ test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori # Get the version number from the toplevel -version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/../gcc/version.c` +if test x${with_gcc_version} = x; then + # Try to get the version number from a hopefully existing gcc directory. + if test -d ${srcdir}/../gcc; then + gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/../gcc/version.c` + else + gcc_version=UNKNOWN + fi +else + gcc_version=${with_gcc_version} +fi ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do @@ -1911,7 +1920,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:1915: checking host system type" >&5 +echo "configure:1924: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -1932,7 +1941,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:1936: checking target system type" >&5 +echo "configure:1945: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -1950,7 +1959,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1954: checking build system type" >&5 +echo "configure:1963: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -2126,7 +2135,7 @@ s%@RANLIB_TEST@%$RANLIB_TEST%g s%@CPP@%$CPP%g s%@F2C_INTEGER@%$F2C_INTEGER%g s%@F2C_LONGINT@%$F2C_LONGINT%g -s%@version@%$version%g +s%@gcc_version@%$gcc_version%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g |