diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-12-29 22:49:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-12-29 22:49:13 +0000 |
commit | 7a081f15207e5e3266417421318f7b330221eb9b (patch) | |
tree | e84bb6a3bf78c90343b3a1bfdb9804661f042390 /gold/configure | |
parent | 1e7fa2ed95d205be68b8ce288d4440f4c742c566 (diff) | |
download | binutils-redhat-7a081f15207e5e3266417421318f7b330221eb9b.tar.gz |
* configure.ac: Set the MCMODEL_MEDIUM conditional to false if
using a version of gcc before 4.1.
* configure: Rebuild.
Diffstat (limited to 'gold/configure')
-rwxr-xr-x | gold/configure | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/gold/configure b/gold/configure index 1bb2d3dee2..4817e444dc 100755 --- a/gold/configure +++ b/gold/configure @@ -6045,7 +6045,32 @@ else fi - if test "$target_cpu" = "x86_64"; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 +$as_echo_n "checking for gcc >= 4.1... " >&6; } +if test "${gold_cv_prog_gcc41+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if !defined __GNUC__ +error +#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) +error +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gold_cv_prog_gcc41=yes +else + gold_cv_prog_gcc41=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 +$as_echo "$gold_cv_prog_gcc41" >&6; } + + if test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"; then MCMODEL_MEDIUM_TRUE= MCMODEL_MEDIUM_FALSE='#' else |