summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-09-24 18:39:23 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-25 09:03:40 -0400
commit519f5162614df6d705de3dce23384d63a2b2b81d (patch)
treed9990e17a5ef6c2fecbea6a287f46799756d70c4 /aclocal.m4
parent02822d847c0bf6a4562cb1a600251d6568f72ce3 (diff)
downloadhaskell-519f5162614df6d705de3dce23384d63a2b2b81d.tar.gz
configure: Drop GccLT46
GCC 4.6 was released 7 years ago. I think we can finally assume that it's available. This is a simplification prompted by #15742.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index b6e72cc4ad..aea0d64886 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1322,18 +1322,15 @@ AC_DEFUN([FP_GCC_VERSION], [
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)
+ FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [4.6],
+ [AC_MSG_ERROR([Need at least gcc version 4.6 (4.7+ recommended)])])
])
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