[Mesa-dev] [PATCH] autoconf: bail out if flex isn't found

Matt Turner mattst88 at gmail.com
Tue Mar 13 20:14:55 PDT 2012


Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=47248
Signed-off-by: Matt Turner <mattst88 at gmail.com>
---
 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



More information about the mesa-dev mailing list