From b45d0f1e9f349f3a11adbbd7575ba3fb2138679a Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 4 Jun 2014 21:50:07 +0200 Subject: [PATCH] autogen.sh: Report an error if yacc or lex are missing. Thanks to Uli Martens for reporting this. --- autogen.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index e4ffee0..87fd59f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,11 @@ #! /bin/sh -libtoolize=libtoolize +if ! which yacc > /dev/null 2>&1 || ! which lex > /dev/null 2>&1; then + echo "yacc and lex are required to build SysDB" >&2 + exit 1 +fi +libtoolize=libtoolize if which glibtoolize > /dev/null 2>&1; then libtoolize=glibtoolize fi -- 2.30.2