(AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
* doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
* lib/autom4te.in (Automake-preselections): Preselect
AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
+2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
+ (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
+ * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
+ * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
+ * lib/autom4te.in (Automake-preselections): Preselect
+ AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
+
2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
* lib/autom4te.in (Automake-preselections): Preselect
New macros that detect programs whose name is prefixed with the
target type, if the build type and target type are different.
+** AC_REQUIRE_AUX_FILE
+ New trace macro that declares expected auxiliary files.
+
* Major changes in Autoconf 2.59a
** AC_PROG_GREP
to MS-DOS, because the filename @file{aux} is reserved under MS-DOS.
@end defmac
+@defmac AC_REQUIRE_AUX_FILE (@var{file})
+@acindex{REQUIRE_AUX_FILE}
+Declares that @var{file} is expected in the directory defined above. In
+Autoconf proper, this macro does nothing: its sole purpose is to be
+traced by third-party tools to produce a list of expected auxiliary
+files. For instance it is called by macros like @code{AC_PROG_INSTALL}
+(@pxref{Particular Programs}) or @code{AC_CANONICAL_BUILD}
+(@pxref{Canonicalizing}) to register the auxiliary files they need.
+@end defmac
+
Similarly, packages that use @command{aclocal} should declare where
local macros can be found using @code{AC_CONFIG_MACRO_DIR}.
+## --------------------- ##
+## Requiring aux files. ##
+## --------------------- ##
+
+# AC_REQUIRE_AUX_FILE(FILE)
+# -------------------------
+# This macro does nothing, it's a hook to be read with `autoconf --trace'.
+# It announces FILE is required in the auxdir.
+m4_define([AC_REQUIRE_AUX_FILE],
+[AS_LITERAL_IF([$1], [],
+ [AC_FATAL([$0: requires a literal argument])])])
+
+
## ----------------------------------- ##
## Getting the canonical system type. ##
# ------------------
AC_DEFUN_ONCE([AC_CANONICAL_BUILD],
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
+AC_REQUIRE_AUX_FILE([config.sub])dnl
+AC_REQUIRE_AUX_FILE([config.guess])dnl
m4_divert_text([HELP_CANON],
[[
System types:
AN_PROGRAM([install], [AC_PROG_INSTALL])
AC_DEFUN([AC_PROG_INSTALL],
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
+AC_REQUIRE_AUX_FILE([install-sh])dnl
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
args: --preselect AC_CONFIG_LINKS
args: --preselect AC_INIT
args: --preselect AC_LIBSOURCE
+args: --preselect AC_REQUIRE_AUX_FILE
args: --preselect AC_SUBST
args: --preselect AM_AUTOMAKE_VERSION
args: --preselect AM_CONDITIONAL