bootstrap: fail hard if flex or bison are missing and needed

(cherry picked from commit 31acc2f0e7)
This commit is contained in:
Rémi Denis-Courmont 2017-12-03 14:56:48 +02:00
parent 14f1d93894
commit 1c60a0f7db
1 changed files with 8 additions and 12 deletions

View File

@ -52,21 +52,17 @@ fi
# Check for flex and bison
if ! flex --version >/dev/null 2>&1; then
cat << EOF
NOTE: flex appears to be missing. Please install it.
Otherwise, you might not be able to build properly.
==========================================================================
EOF
echo "ERROR: flex is not installed." >&2
if ! test -f modules/codec/webvtt/CSSLexer.c; then
exit 1
fi
fi
if ! bison --version >/dev/null 2>&1; then
cat << EOF
NOTE: bison appears to be missing. Please install it.
Otherwise, you might not be able to build properly.
==========================================================================
EOF
echo "ERROR: GNU bison is not installed." >&2
if ! test -f modules/codec/webvtt/CSSGrammar.c; then
exit 1
fi
fi
###