(trace_used_macros): Trace AC_DEFUN_ONCE.
* tests/aclocal5.test: Use AC_DEFUN_ONCE.
+2004-10-10 Kelley Cook <kcook@gcc.gnu.org> (tiny change)
+ Alexandre Duret-Lutz <adl@gnu.org>
+
+ * aclocal.in ($ac_defun_rx): Match AC_DEFUN_ONCE.
+ (trace_used_macros): Trace AC_DEFUN_ONCE.
+ * tests/aclocal5.test: Use AC_DEFUN_ONCE.
+
2004-10-10 Stepan Kasal <kasal@ucw.cz> (tiny change)
* doc/automake.texi (Extending): Typo.
Juergen Keil jk@tools.de
Karl Berry kb@cs.umb.edu
Karl Heuer kwzh@gnu.org
+Kelley Cook kcook@gcc.gnu.org
Kevin Dalley kevin@aimnet.com
Kevin P. Fleming. kpfleming@cox.net
Kevin Ryde user42@zip.com.au
# When macroname is `['-quoted , we accept any character in the name,
# except `]'. Otherwise macroname stops on the first `]', `,', `)',
# or `\n' encountered.
-$ac_defun_rx = "A[CU]_DEFUN\\((?:\\[([^]]+)\\]|([^],)\n]+))";
+$ac_defun_rx = "(?:A[CU]_DEFUN|AC_DEFUN_ONCE)\\((?:\\[([^]]+)\\]|([^],)\n]+))";
# Matches an AC_REQUIRE line.
$ac_require_rx = "AC_REQUIRE\\((?:\\[([^]]+)\\]|([^],)\n]+))\\)";
$traces .= join (' ', grep { exists $files{$_} } @file_order) . " ";
# All candidate macros.
$traces .= join (' ', map { "--trace='$_:\$f:\$n:\$1'" } ('AC_DEFUN',
+ 'AC_DEFUN_ONCE',
'AU_DEFUN',
keys %macro_seen));
$traced{$macro} = 1 if $macro_seen{$macro};
$map_traced_defs{$arg1} = $file
- if $macro eq 'AC_DEFUN' || $macro eq 'AU_DEFUN';
+ if ($macro eq 'AC_DEFUN'
+ || $macro eq 'AC_DEFUN_ONCE'
+ || $macro eq 'AU_DEFUN');
}
$tracefh->close;
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# Update an aclocal.m4 dependency, then make sure all Makefiles
# are updated, even from a sub-directory.
-echo 'AC_DEFUN([MORE_DEFS], [AC_SUBST([GREPME])])' > m4/moredefs.m4
+echo 'AC_DEFUN_ONCE([MORE_DEFS], [AC_SUBST([GREPME])])' > m4/moredefs.m4
cd sub
$MAKE
cd ..