testsuite/IpeStats: Use Make rather than shell interpolation
[ghc.git] / m4 / fp_cc_llvm_backend.m4
blob521c5b8cbae6ce8fc0a02ab36c3244d2f1a218be
1 dnl Check to see if the C compiler is clang or llvm-gcc
2 dnl
3 AC_DEFUN([FP_CC_LLVM_BACKEND],
4   [AC_REQUIRE([AC_PROG_CC])
5    AC_MSG_CHECKING([whether C compiler has an LLVM back end])
6    $CC -x c /dev/null -dM -E > conftest.txt 2>&1
7    if grep "__llvm__" conftest.txt >/dev/null 2>&1; then
8      CcLlvmBackend=YES
9      AC_MSG_RESULT([yes])
10    else
11      CcLlvmBackend=NO
12      AC_MSG_RESULT([no])
13    fi
15    rm -f conftest.txt