1 dnl find f/lex, but error if none found
2 AC_DEFUN_ONCE([AMU_PROG_LEX],
3 [AC_CHECK_PROGS(LEX, flex lex, :)
6 AC_CHECK_LIB(fl, yywrap, LEXLIB="-lfl",
7 [AC_CHECK_LIB(l, yywrap, LEXLIB="-ll")])
10 if test "x$LEX" != "x:"; then
11 _AC_PROG_LEX_YYTEXT_DECL
13 AC_MSG_ERROR([cannot find flex/lex -- needed for am-utils])