From 23f6c6d9b9cd3a1326da01438295b0216fad6ffb Mon Sep 17 00:00:00 2001 From: "Yves-Gael Cheny ( irc hurdman_begin )" Date: Fri, 6 Feb 2015 00:06:06 +0100 Subject: Check that yacc is provided by bison * configure.ac: Check that yacc --version contains bison. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index efd542a..37bf432 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,12 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_CPP AC_PROG_YACC + +yacc_is_bison=`yacc --version | head -n 1 | cut '-d ' -f1` +[if [ x"$yacc_is_bison" != x"bison" ]; then ] + AC_MSG_ERROR([yacc is not provided by bison, check your alternative conf or your packages]) +[fi] + AM_PROG_LEX AC_PROG_AWK AC_PROG_INSTALL -- cgit v1.2.3