Individual autoconf function broken out of acincludes.m4. This change
[oota-llvm.git] / autoconf / m4 / flex.m4
1 #
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
7 AC_DEFUN([AC_PROG_FLEX],
8 [AC_CACHE_CHECK(,
9 ac_cv_has_flex,
10 [AC_PROG_LEX()
11 ])
12 if test "$LEX" != "flex"; then
13   AC_MSG_ERROR([flex not found but required])
14 else
15   AC_SUBST(FLEX,[flex],[location of flex])
16 fi
17 ])