aboutsummaryrefslogtreecommitdiff
path: root/gold/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-12-29 22:49:13 +0000
committerIan Lance Taylor <ian@airs.com>2009-12-29 22:49:13 +0000
commit084e2665e2f76ce0106595e62bd31bd33d9c6190 (patch)
tree10d6dc3117e59974bfb0d89189b86452f4cc3483 /gold/configure
parent250acde31a8008cfcbd969d25fb5b91ad9eaff34 (diff)
downloadgdb-084e2665e2f76ce0106595e62bd31bd33d9c6190.zip
gdb-084e2665e2f76ce0106595e62bd31bd33d9c6190.tar.gz
gdb-084e2665e2f76ce0106595e62bd31bd33d9c6190.tar.bz2
* 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-xgold/configure27
1 files changed, 26 insertions, 1 deletions
diff --git a/gold/configure b/gold/configure
index 1bb2d3d..4817e44 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