diff --git a/autogen.sh b/autogen.sh
index e4ffee05b9816c23a037b03e5a184d8ce375d237..87fd59fd3d8e53695f1ca522fd336feaea16d804 100755 (executable)
--- a/autogen.sh
+++ b/autogen.sh
#! /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