Skip to contentSkip to conversation

gfs2-utils: Fail to configure if flex is not found

PATCH New Andrew Price 1 participant 1 message Feb 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2-utils: Fail to configure if flex is not found

We require flex to build so the configure script should not succeed if flex is not installed. We use flex-specific features so check for flex specifically.

---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)
configure.ac +1 -0
index 80310be..b93eec9 100644
@@ -58,6 +58,7 @@ AC_PROG_LN_S
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 AC_PROG_LEX
+test "$LEX" != "flex" && AC_MSG_ERROR([flex not found])
 AC_CHECK_PROG([YACC], [bison], [bison -y])
 test x"$YACC" = x && AC_MSG_ERROR([bison not found])
 
Signature · 1 line
1.8.5.3