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

Andrew Price andyp at fedoraproject.org
Mon Mar 3 18:47:54 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=02b1f7d0feeb7e948a77501752ee872d9cfed9c4
Commit:        02b1f7d0feeb7e948a77501752ee872d9cfed9c4
Parent:        5bb5b3e8078886d3fd614f00c467a846b89ec23f
Author:        Andrew Price <anprice at redhat.com>
AuthorDate:    Fri Feb 28 10:31:02 2014 +0000
Committer:     Andrew Price <anprice at redhat.com>
CommitterDate: Fri Feb 28 11:00:57 2014 +0000

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.

Signed-off-by: Andrew Price <anprice at redhat.com>
---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 80310be..b93eec9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
 


More information about the cluster-commits mailing list