aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-01-26 21:55:54 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-01-26 21:55:54 +0000
commit966abd70756ca6dd1d672b38da8a4f445bb657ff (patch)
treedeaf0d93828b657f5e05daeb2405b1d6b69e4191 /bfd/configure.in
parent072cf0527f78e63c4dbc9a4bdd21d193049ddc6d (diff)
downloadgdb-966abd70756ca6dd1d672b38da8a4f445bb657ff.zip
gdb-966abd70756ca6dd1d672b38da8a4f445bb657ff.tar.gz
gdb-966abd70756ca6dd1d672b38da8a4f445bb657ff.tar.bz2
* configure.in <64-bit configuration>: If using gcc, check and
emit error for egcs-1.1.2. * configure: Regenerate.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index 14cf519..239bde8 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -775,6 +775,18 @@ case ${host64}-${target64}-${want64} in
AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
AC_MSG_WARN([your compiler may not have a 64 bit integral type])
fi
+ if test -n "$GCC" ; then
+ bad_64bit_gcc=no;
+ AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
+ # Add more tests for gcc versions with non-working 64-bit support here.
+ AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
+ bad_64bit_gcc=yes;
+ AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
+ AC_MSG_RESULT(no))
+ if test $bad_64bit_gcc = yes ; then
+ AC_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
+ fi
+ fi
;;
false-false-false)
wordsize=32