[vlc-commits] bootstrap: fail hard if flex or bison are missing and needed
Rémi Denis-Courmont
git at videolan.org
Sun Dec 3 13:57:25 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 3 14:56:48 2017 +0200| [31acc2f0e75352c56b742d33d6852b209133b05e] | committer: Rémi Denis-Courmont
bootstrap: fail hard if flex or bison are missing and needed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31acc2f0e75352c56b742d33d6852b209133b05e
---
bootstrap | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/bootstrap b/bootstrap
index e701f519d1..995fee2011 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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
###
More information about the vlc-commits
mailing list