AC_DEFINE is now passed to m4_pattern_allow.
* NEWS: Mention that; likewise for AC_SUBST.
* lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
the parameter to m4_pattern_allow.
* tests/tools.at: Add a check for that.
+2006-05-22 Stepan Kasal <kasal@ucw.cz>
+
+ * doc/autoconf.texi (Defining Symbols): Literal parameter of
+ AC_DEFINE is now passed to m4_pattern_allow.
+ * NEWS: Mention that; likewise for AC_SUBST.
+ * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
+ the parameter to m4_pattern_allow.
+ * tests/tools.at: Add a check for that.
+
2006-05-22 Stepan Kasal <kasal@ucw.cz>
* lib/autoconf/status.m4: Fix typos.
These never-documented variables have been marked with a comment
saying that we intend to remove them in a future release.
+** AC_SUBST, AC_DEFINE
+ Literal arguments to these are passed to m4_pattern_allow now.
+
** AC_PROG_CC_STDC
Passing 'ac_cv_prog_cc_stdc=no' to 'configure' now sets ac_cv_prog_cc_c99
and ac_cv_prog_cc_c89 to 'no' as well, for backward compatibility with
@var{value} defaults to 1 instead of to the empty string. This is for
backwards compatibility with older versions of Autoconf, but this usage
is obsolescent and may be withdrawn in future versions of Autoconf.
+
+If the @var{variable} is a literal string, it is passed to
+@code{m4_pattern_allow} (@pxref{Forbidden Patterns}).
@end defmac
@defmac AC_DEFINE_UNQUOTED (@var{variable}, @var{value}, @ovar{description})
# AC_DEFINE_TRACE_LITERAL(LITERAL-CPP-SYMBOL)
# -------------------------------------------
-# This macro is useless, it is used only with --trace to collect the
-# list of *literals* CPP values passed to AC_DEFINE/AC_DEFINE_UNQUOTED.
-m4_define([AC_DEFINE_TRACE_LITERAL])
+# Used by --trace to collect the list of AC_DEFINEd macros.
+m4_define([AC_DEFINE_TRACE_LITERAL],
+[m4_pattern_allow([^$1$])])
# AC_DEFINE_TRACE(CPP-SYMBOL)
AT_CLEANUP
+# autoconf: automatically allowed tokens
+# --------------------------------------
+AT_SETUP([autoconf: automatically alowed tokens])
+
+AT_DATA_M4SH([configure.ac],
+[[AC_INIT
+m4_pattern_forbid([^FB_])
+AC_DEFINE([FB_ONE])
+AC_SUBST([FB_TWO])
+AC_OUTPUT
+]])
+
+AT_CHECK_AUTOCONF
+
+AT_CLEANUP
+
+
# autoconf: subdirectories
# --------------------------------------
AT_SETUP([autoconf: subdirectories])