summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorJan Stolarek <jan.stolarek@p.lodz.pl>2013-09-18 08:47:58 +0100
committerJan Stolarek <jan.stolarek@p.lodz.pl>2013-09-18 08:47:58 +0100
commitb6bc3263d0099e79b437ac5f3c053452c608c710 (patch)
tree159cd35c03ec1efdadc0fec2ad99953ed099acdc /aclocal.m4
parentd80bd87b00d8e40a50c12d2416a65e0f9ce9fe32 (diff)
downloadhaskell-b6bc3263d0099e79b437ac5f3c053452c608c710.tar.gz
Limit upper versions of Alex and Happy
This is temporary until new bool primops have been pushed.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 151cc2ea2c..1e628b1401 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -869,6 +869,11 @@ then
FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.16],
[AC_MSG_ERROR([Happy version 1.16 or later is required to compile GHC.])])[]
fi
+if test ! -f compiler/parser/Parser.hs || test ! -f compiler/cmm/CmmParse.hs || test ! -f compiler/parser/ParserCore.hs
+then
+ FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-gt],[1.18.11],
+ [AC_MSG_ERROR([Happy version 1.18.11 or earlier is required to compile GHC.])])[]
+fi
HappyVersion=$fptools_cv_happy_version;
AC_SUBST(HappyVersion)
])
@@ -898,6 +903,11 @@ then
FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[2.1.0],
[AC_MSG_ERROR([Alex version 2.1.0 or later is required to compile GHC.])])[]
fi
+if test ! -f compiler/cmm/CmmLex.hs || test ! -f compiler/parser/Lexer.hs
+then
+ FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-gt],[3.0.5],
+ [AC_MSG_ERROR([Alex version 3.0.5 or earlier is required to compile GHC.])])[]
+fi
if test ! -f utils/haddock/src/Haddock/Lex.hs
then
FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[3.0],