summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
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])