[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: AC_SUBST -> m4_pattern_allow
From: |
Akim Demaille |
Subject: |
FYI: AC_SUBST -> m4_pattern_allow |
Date: |
Fri, 17 Dec 2004 17:17:27 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
m4_pattern_allow.
Suggested by Alexandre Duret-Lutz.
* doc/autoconf.texi (Setting Output Variables): Catch up.
Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.332
diff -u -u -r1.332 NEWS
--- NEWS 29 Nov 2004 21:24:57 -0000 1.332
+++ NEWS 17 Dec 2004 16:16:40 -0000
@@ -1,3 +1,5 @@
+* Major changes in Autoconf 2.59c
+
* Major changes in Autoconf 2.59b
Released 2004-08-20, by Paul Eggert.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.852
diff -u -u -r1.852 autoconf.texi
--- doc/autoconf.texi 17 Dec 2004 14:32:51 -0000 1.852
+++ doc/autoconf.texi 17 Dec 2004 16:16:41 -0000
@@ -7209,6 +7209,9 @@
newlines.)
If @var{value} is given, in addition assign it to @var{variable}.
+
+The string @var{variable} is passed to @code{m4_pattern_allow}
+(@pxref{Forbidden Patterns}).
@end defmac
@defmac AC_SUBST_FILE (@var{variable})
@@ -7228,7 +7231,7 @@
could contain:
@example
-AC_SUBST_FILE(host_frag)
+AC_SUBST_FILE([host_frag])
host_frag=$srcdir/conf/sun4.mh
@end example
@@ -7238,6 +7241,9 @@
@example
@@host_frag@@
@end example
+
+The string @var{variable} is passed to @code{m4_pattern_allow}
+(@pxref{Forbidden Patterns}).
@end defmac
@cindex Previous Variable
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.837
diff -u -u -r1.837 general.m4
--- lib/autoconf/general.m4 17 Dec 2004 14:36:24 -0000 1.837
+++ lib/autoconf/general.m4 17 Dec 2004 16:16:41 -0000
@@ -1890,7 +1890,8 @@
# Beware that if you change this macro, you also have to change the
# sed script at the top of _AC_OUTPUT_FILES.
m4_define([AC_SUBST],
-[m4_ifvaln([$2], [$1=$2])[]dnl
+[m4_pattern_allow([^$1$])dnl
+m4_ifvaln([$2], [$1=$2])[]dnl
m4_append_uniq([_AC_SUBST_VARS], [$1], [ ])dnl
])# AC_SUBST
@@ -1899,7 +1900,8 @@
# -----------------------
# Read the comments of the preceding macro.
m4_define([AC_SUBST_FILE],
-[m4_append_uniq([_AC_SUBST_FILES], [$1], [ ])])
+[m4_pattern_allow([^$1$])dnl
+m4_append_uniq([_AC_SUBST_FILES], [$1], [ ])])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: AC_SUBST -> m4_pattern_allow,
Akim Demaille <=