summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2017-11-06 15:35:30 -0500
committerBen Gamari <ben@smart-cactus.org>2017-11-06 16:39:20 -0500
commit59de290928e6903337f31c1f8107ac8a98ea145d (patch)
tree7c8cd1ebd75bd1bb0f11b0ac24965f82cc4d74f8 /aclocal.m4
parent8613e61de62178e76cd0f8915bd1fbe9c200a039 (diff)
downloadhaskell-59de290928e6903337f31c1f8107ac8a98ea145d.tar.gz
Update autoconf test for gcc to require 4.7 and up
Fixing #14244 required the newer gcc atomic built-ins that are provided from 4.7 and up. This updates the test to check for minimum gcc version 4.7. The version tests for 3.4 (!), 4.4, and 4.6 are no longer needed and can be removed. This makes the build system simpler. Test Plan: validate Reviewers: austin, bgamari, hvr, simonmar Reviewed By: bgamari Subscribers: rwbarton, thomie, erikd Differential Revision: https://phabricator.haskell.org/D4165
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m416
1 files changed, 2 insertions, 14 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c8c59859b2..c5fdd1e53a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1229,27 +1229,15 @@ if test -z "$CC"
then
AC_MSG_ERROR([gcc is required])
fi
-GccLT34=NO
-GccLT44=NO
-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], [3.0],
- [AC_MSG_ERROR([Need at least gcc version 3.0 (3.4+ recommended)])])
- # See #2770: gcc 2.95 doesn't work any more, apparently. There probably
- # isn't a very good reason for that, but for now just make configure
- # fail.
- FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [3.4], GccLT34=YES)
- FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.4], GccLT44=YES)
- FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.6], GccLT46=YES)
+ FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.7],
+ [AC_MSG_ERROR([Need at least gcc version 4.7])])
])
AC_SUBST([GccVersion], [$fp_cv_gcc_version])
-AC_SUBST(GccLT34)
-AC_SUBST(GccLT44)
-AC_SUBST(GccLT46)
])# FP_GCC_VERSION
dnl Check to see if the C compiler is clang or llvm-gcc