From a59f8c06548ba63301ccd860d0c52f11abdc78fe Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 13 Mar 2012 23:13:15 -0400 Subject: [PATCH] autoconf: bail out if flex isn't found Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=47248 Signed-off-by: Matt Turner --- configure.ac | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index a2d906a..e7994b0 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,9 @@ if test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.y"; then fi fi AC_PROG_LEX +if test "x$LEX" != xflex; then + AC_MSG_ERROR([flex not found - unable to compile glcpp-lex.l]) +fi dnl Our fallback install-sh is a symlink to minstall. Use the existing dnl configuration in that case. -- 1.7.3.4