Fix the build on Windows
authorIan Lynagh <igloo@earth.li>
Fri, 10 Feb 2012 01:23:10 +0000 (01:23 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 10 Feb 2012 01:23:10 +0000 (01:23 +0000)
WhatGccIsCalled was no longer being defined on Windows.
Spotted by Niklas Larsson.

aclocal.m4

index 7fde632..9447a47 100644 (file)
@@ -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