diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-09-24 18:38:42 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-10-25 09:03:40 -0400 |
commit | 02822d847c0bf6a4562cb1a600251d6568f72ce3 (patch) | |
tree | d9e9637e62a8337b9690361e697368a73b9e0b87 | |
parent | 4c7d45d16f9b0ce3cee61274897730f65a5ee569 (diff) | |
download | haskell-02822d847c0bf6a4562cb1a600251d6568f72ce3.tar.gz |
aclocal: A bit of reformatting
-rw-r--r-- | aclocal.m4 | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index ab66dfe35d..b6e72cc4ad 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1316,43 +1316,43 @@ AC_DEFUN([FP_PROG_AR_NEEDS_RANLIB],[ # ----------- # Extra testing of the result AC_PROG_CC, testing the gcc version no. Sets the # output variable GccVersion. -AC_DEFUN([FP_GCC_VERSION], -[AC_REQUIRE([AC_PROG_CC]) -if test -z "$CC" -then - AC_MSG_ERROR([gcc is required]) -fi -GccLT46=NO -AC_CACHE_CHECK([version of gcc], [fp_cv_gcc_version], -[ - # Be sure only to look at the first occurrence of the "version " string; - # Some Apple compilers emit multiple messages containing this string. - fp_cv_gcc_version="`$CC -v 2>&1 | sed -n -e '1,/version /s/.*version [[^0-9]]*\([[0-9.]]*\).*/\1/p'`" - FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.4], - [AC_MSG_ERROR([Need at least gcc version 4.4 (4.7+ recommended)])]) - FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.6], GccLT46=YES) -]) -AC_SUBST([GccVersion], [$fp_cv_gcc_version]) -AC_SUBST(GccLT46) +AC_DEFUN([FP_GCC_VERSION], [ + AC_REQUIRE([AC_PROG_CC]) + if test -z "$CC" + then + AC_MSG_ERROR([gcc is required]) + fi + GccLT46=NO + AC_CACHE_CHECK([version of gcc], [fp_cv_gcc_version], + [ + # Be sure only to look at the first occurrence of the "version " string; + # Some Apple compilers emit multiple messages containing this string. + fp_cv_gcc_version="`$CC -v 2>&1 | sed -n -e '1,/version /s/.*version [[^0-9]]*\([[0-9.]]*\).*/\1/p'`" + FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.4], + [AC_MSG_ERROR([Need at least gcc version 4.4 (4.7+ recommended)])]) + FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.6], GccLT46=YES) + ]) + AC_SUBST([GccVersion], [$fp_cv_gcc_version]) + AC_SUBST(GccLT46) ])# FP_GCC_VERSION dnl Check to see if the C compiler is clang or llvm-gcc dnl AC_DEFUN([FP_CC_LLVM_BACKEND], -[AC_REQUIRE([AC_PROG_CC]) -AC_MSG_CHECKING([whether C compiler has an LLVM back end]) -$CC -x c /dev/null -dM -E > conftest.txt 2>&1 -if grep "__llvm__" conftest.txt >/dev/null 2>&1; then - AC_DEFINE([CC_LLVM_BACKEND], [1], [Define (to 1) if C compiler has an LLVM back end]) - CcLlvmBackend=YES - AC_MSG_RESULT([yes]) -else - CcLlvmBackend=NO - AC_MSG_RESULT([no]) -fi -AC_SUBST(CcLlvmBackend) + [AC_REQUIRE([AC_PROG_CC]) + AC_MSG_CHECKING([whether C compiler has an LLVM back end]) + $CC -x c /dev/null -dM -E > conftest.txt 2>&1 + if grep "__llvm__" conftest.txt >/dev/null 2>&1; then + AC_DEFINE([CC_LLVM_BACKEND], [1], [Define (to 1) if C compiler has an LLVM back end]) + CcLlvmBackend=YES + AC_MSG_RESULT([yes]) + else + CcLlvmBackend=NO + AC_MSG_RESULT([no]) + fi + AC_SUBST(CcLlvmBackend) -rm -f conftest.txt + rm -f conftest.txt ]) # FP_GCC_SUPPORTS__ATOMICS |