summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-08-03 00:53:57 +0100
committerIan Lynagh <igloo@earth.li>2011-08-03 00:53:57 +0100
commit1422ea4e0d9e0e9995e57da7ce00fec8109e6772 (patch)
tree8e1cb31054cc9be1cf5ee633c38ea245a267e515 /distrib
parent6d934cce1d4ccbcc8abf7985b66d36d4386808db (diff)
downloadhaskell-1422ea4e0d9e0e9995e57da7ce00fec8109e6772.tar.gz
Refactor configure.ac's: Define FIND_GCC() in aclocal.m4
Diffstat (limited to 'distrib')
-rw-r--r--distrib/configure.ac.in13
1 files changed, 1 insertions, 12 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 72fb71258d..ce51c278f2 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -51,18 +51,7 @@ XCODE_VERSION()
dnl ** Which gcc to use?
dnl --------------------------------------------------------------
-if test "$TargetOS_CPP" = "darwin" &&
- test "$XCodeVersion1" -ge 4
-then
- # From Xcode 4, use 'gcc-4.2' to force the use of the gcc legacy backend (instead of the LLVM
- # backend)
- FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc-4.2])
-else
- FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc])
-fi
-export CC
-WhatGccIsCalled="$CC"
-AC_SUBST(WhatGccIsCalled)
+FIND_GCC()
FP_GCC_VERSION
AC_PROG_CPP