blob: 5cb3dc4f8fdd566a7b070651d0472ac419212123 [file] [log] [blame]
Reid Spencer491f6812004-09-07 06:56:14 +00001#
2# Check for FLEX.
3#
4# This macro verifies that flex is installed. If successful, then
5# 1) $LEX is set to "flex" (to emulate lex calls)
6# 2) BISON is set to bison
7AC_DEFUN([AC_PROG_FLEX],
8[AC_CACHE_CHECK(,
9ac_cv_has_flex,
10[AC_PROG_LEX()
11])
12if test "$LEX" != "flex"; then
13 AC_MSG_ERROR([flex not found but required])
14else
15 AC_SUBST(FLEX,[flex],[location of flex])
16fi
17])