From 90500878bfdf57e7c10ed4dc306b82fb9423e611 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Dec 2014 14:20:59 +0100 Subject: [PATCH] Fail hard if Bison is not found YAZ-808 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e1623bb..365422c7 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,8 @@ dnl ------ Checking programs AC_PROG_CC AC_PROG_CPP AC_CHECK_PROGS([YACC], 'bison -y') -test -z "$YACC" && AC_MSG_WARN([GNU bison not found]) +test -z "$YACC" -a ! -f src/cql.c && AC_MSG_ERROR([GNU Bison not found]) +test -z "$YACC" && AC_MSG_WARN([GNU Bison not found]) AC_CHECK_PROGS([TCLSH], [tclsh tclsh8.5 tclsh8.4 tclsh8.3 tclsh8.2], [tclsh]) AC_PROG_INSTALL AM_PROG_LIBTOOL -- 1.7.10.4