Commit d178ec51 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Check for menhir's version.

Older versions of menhir fail to compile rules mixing inlined definitions
(e.g. ioption) with unnamed arguments (e.g. $2).
parent 9c3456a3
......@@ -280,6 +280,12 @@ if test "$MENHIR" = no ; then
AC_MSG_ERROR(Cannot find menhir.)
fi
MENHIRVERSION=`$MENHIR --version | sed -n -e 's,.*version* *\(.*\)$,\1,p'`
case "$MENHIRVERSION" in
200*|201[[0-4]]*|20150[[1-5]]*)
AC_MSG_ERROR(You need Menhir 20150629 or higher.);;
esac
## Where are the library we need
# we look for ocamlfind; if not present, we just don't use it to find
# libraries
......
......@@ -45,7 +45,7 @@ build-doc: [
depends: [
"ocamlfind"
"menhir"
"menhir" {>= 20150629}
]
depopts: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment