summaryrefslogtreecommitdiff
path: root/m4/lex.m4
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2001-10-21 18:04:16 +0000
committerAkim Demaille <akim@epita.fr>2001-10-21 18:04:16 +0000
commit14509ba408e4c3bab0b3d5b01d18fbbe8144dffe (patch)
tree1c5c936b9f5fd924397dfd50ed21352ad09bb248 /m4/lex.m4
parent496dfead0b9cd02f819252cfbf37c3f3e29a134e (diff)
downloadautomake-14509ba408e4c3bab0b3d5b01d18fbbe8144dffe.tar.gz
* m4/lex.m4: Don't run AC_DECL_YYTEXT, Autoconf does.
* automake.texi (Macros, Yacc and Lex): Adjust. * automake.in ($seen_decl_yytext): Rename as... ($seen_prog_lex): this. (&scan_autoconf_traces): Add AC_PROG_LEX support. (&scan_one_autoconf_file, &lang_lex_finish): Adjust.
Diffstat (limited to 'm4/lex.m4')
-rw-r--r--m4/lex.m414
1 files changed, 9 insertions, 5 deletions
diff --git a/m4/lex.m4 b/m4/lex.m4
index b2c41f8e6..d4cc3818c 100644
--- a/m4/lex.m4
+++ b/m4/lex.m4
@@ -1,4 +1,4 @@
-## Replacement for AC_PROG_LEX and AC_DECL_YYTEXT
+## Replacement for AC_PROG_LEX. -*- Autoconf -*-
## by Alexandre Oliva <oliva@dcc.unicamp.br>
# Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
@@ -18,10 +18,14 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
+# serial 2
+
+AC_PREREQ(2.50)
+
# AM_PROG_LEX
-# Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
+# -----------
+# Look for flex, lex or missing, then run AC_PROG_LEX.
AC_DEFUN([AM_PROG_LEX],
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
+[AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
AC_CHECK_PROGS(LEX, flex lex, [${am_missing_run}flex])
-AC_PROG_LEX
-AC_DECL_YYTEXT])
+AC_PROG_LEX])