From: Sebastian Harl Date: Sat, 24 May 2008 20:29:56 +0000 (+0200) Subject: build.sh: Check for lex and yacc. X-Git-Tag: collectd-4.4.1~5^2^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ae210a9978f06e6ed7de560b5621ba3d9c761315;p=collectd.git build.sh: Check for lex and yacc. Warn the user, if lex(1) and yacc(1) cannot be found. This is not necessarily an error, as flex(1) or bison(1) might be available. As suggested by Kevin Trumbull (onebinary) on IRC. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/build.sh b/build.sh index 3efb44f6..cede2e48 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,15 @@ #! /bin/sh +if ! which lex > /dev/null 2>&1; then + echo "WARNING: lex not found!" >&2 + echo "Make sure that you have a flex compatible tool available." >&2 +fi + +if ! which yacc > /dev/null 2>&1; then + echo "WARNING: yacc not found!" >&2 + echo "Make sure that you have a GNU bison compatible tool available." >&2 +fi + libtoolize=libtoolize if which glibtoolize > /dev/null 2>&1; then