From 0d2f412ae67c2737820268afff7b6b9ef6f53696 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 21 Oct 2009 14:59:37 +0000 Subject: [PATCH] Abort configure if we cannot find bison/byacc/yacc. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@512 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 034f3b9..b69abe1 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,11 @@ AC_PROG_LEX LIBS="$LIBS $LEXLIB" -AC_PROG_YACC + +AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc) +if test -z "$YACC"; then + AC_MSG_ERROR([bison or yacc not found.]) +fi case "$(uname -s)" in Linux | *BSD)