summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-03-23 23:00:32 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-03-23 23:00:32 -0400
commitc8ed8d2efc59212a20fbffad3493f3193b68b20f (patch)
treeba17b384d451e3b03626d7bb6293361bbd88db29 /configure.ac
parentdf5706c58b5b42b9b302c2ad068f623374b51a8e (diff)
fail if no lex program is found (i think)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 56f08147..b323576f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,6 +3,9 @@ AM_INIT_AUTOMAKE(cdec,0.1)
AC_CONFIG_HEADERS(config.h)
AC_PROG_LIBTOOL
AC_PROG_LEX
+case $LEX in
+:) AC_MSG_ERROR([No lex (Flex, lex, etc.) program found]);;
+esac
AC_PROG_CC
AC_PROG_CXX
AC_LANG_CPLUSPLUS