[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix for autoupdating AC_DECL_YYTEXT
From: |
Pavel Roskin |
Subject: |
Fix for autoupdating AC_DECL_YYTEXT |
Date: |
Thu, 28 Sep 2000 11:36:23 -0400 (EDT) |
Hello!
Autoupdate replaces AC_DECL_YYTEXT with AC_REQUIRE([AC_PROG_LEX]), but
AC_REQUIRE is not allowed outside AC_DEFUN.
In fact, nobody wants to use AC_PROG_LEX more than once, so it should be
defined by AC_DEFUN_ONCE. Having done that, it becomes safe to use
AC_PROG_LEX instead of AC_REQUIRE([AC_PROG_LEX]).
ChangeLog:
* acspecific.m4 (AC_PROG_LEX): Use AC_DIVERT_ONCE.
(AC_DECL_YYTEXT): Don't use AC_REQUIRE because autoupdate
would place it into configure.in but it's not allowed
outside AC_DEFUN.
Regards,
Pavel Roskin
____________________
Index: acspecific.m4
--- acspecific.m4 Thu Sep 28 06:34:53 2000
+++ acspecific.m4 Thu Sep 28 10:58:48 2000
@@ -128,7 +128,7 @@
# -----------
# Look for flex or lex. Set its associated library to LEXLIB.
# Check if lex declares yytext as a char * by default, not a char[].
-AC_DEFUN([AC_PROG_LEX],
+AC_DEFUN_ONCE([AC_PROG_LEX],
[AH_CHECK_LIB(fl)dnl
AH_CHECK_LIB(l)dnl
AC_CHECK_PROG(LEX, flex, flex, lex)
@@ -187,7 +187,7 @@
# Require AC_PROG_LEX in case some people were just calling this macro.
AU_DEFUN([AC_DECL_YYTEXT],
-[AC_REQUIRE([AC_PROG_LEX])])
+[AC_PROG_LEX])
# AC_PROG_INSTALL
____________________
- Fix for autoupdating AC_DECL_YYTEXT,
Pavel Roskin <=