From d5d8285dd676a9940ee351daada4179a01f151fd Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 14 Feb 2020 01:26:06 +0000 Subject: issue #4: configure doesn't fail if flex is not installed add a check for lex like the existing one for yacc Signed-off-by: Thomas E. Dickey --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 985df1a..143d388 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,12 @@ if test ! -f "$srcdir/src/laygram.c"; then fi fi AC_PROG_LEX +AC_PATH_PROG([LEX_INST], $LEX) +if test ! -f "$srcdir/src/laylex.c"; then + if test -z "$LEX_INST"; then + AC_MSG_ERROR([lex not found - unable to compile laylex.y]) + fi +fi # Checks for header files. PKG_CHECK_MODULES(X11, [x11 xt xmu xext]) -- cgit v1.2.3