]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
configure: Replace broken AM_PROG_LEX with AC_CHECK_PROGS
authorThomas Graf <tgraf@suug.ch>
Fri, 23 Nov 2012 15:40:14 +0000 (16:40 +0100)
committerThomas Graf <tgraf@suug.ch>
Fri, 23 Nov 2012 15:41:08 +0000 (16:41 +0100)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
configure.in

index a06bee190c259dc353183eb9d57661ac3689c3e3..7ccc1319d024b961b11a3b9ee9955c8a6321ceca 100644 (file)
@@ -67,7 +67,7 @@ AC_PROG_CC
 AM_PROG_CC_C_O
 AC_PROG_INSTALL
 AM_PROG_LIBTOOL
-AM_PROG_LEX
+AC_CHECK_PROGS(FLEX, 'flex')
 AC_CHECK_PROGS(YACC, 'bison -y')
 
 AC_C_CONST
@@ -123,8 +123,8 @@ if test -z "$YACC"; then
     AC_MSG_WARN(bison not found. Please install before continuing.)
     ac_errcount=$((ac_errcount + 1))
 fi
-if test -z "$LEXLIB"; then
-    AC_MSG_WARN(flex or lex not found. Please install before continuing.)
+if test -z "$FLEX"; then
+    AC_MSG_WARN(flex not found. Please install before continuing.)
     ac_errcount=$((ac_errcount + 1))
 fi
 if test $ac_errcount -gt 0; then