summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-02-10 01:23:10 +0000
committerIan Lynagh <igloo@earth.li>2012-02-10 01:23:10 +0000
commit76e72c38d3c6522c3db4215e56704dd5bf3f595e (patch)
treeecea4581778375cabc56005265e9227104d22eff /aclocal.m4
parent6e87d4b138b8c20f4ad6f842758b21f8509d4f60 (diff)
downloadhaskell-76e72c38d3c6522c3db4215e56704dd5bf3f595e.tar.gz
Fix the build on Windows
WhatGccIsCalled was no longer being defined on Windows. Spotted by Niklas Larsson.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 7fde6327c3..9447a47813 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2016,6 +2016,9 @@ AC_DEFUN([FIND_GCC],[
# than the LLVM backend). We prefer the legacy gcc, but in
# Xcode 4.2 'gcc-4.2' was removed.
FP_ARG_WITH_PATH_GNU_PROG([$1], [gcc-4.2], [gcc-4.2])
+ elif test "$windows" = YES
+ then
+ $1="$CC"
else
FP_ARG_WITH_PATH_GNU_PROG([$1], [$2], [$3])
fi