+2003-10-08 Gary V. Vaughan <gary@gnu.org>
+
+ * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
+ that future autopoint/aclocal/automake/autoreconf will be able
+ to trace to find where to install local m4 macros.
+ * doc/autoconf.texi (Input): Document it.
+ * NEWS: Updated.
+
2003-10-06 Gary V. Vaughan <gary@gnu.org>
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
Autoreconf creates the auxiliary directory if needed. This is
especially useful for initial "bootstrapping" of fresh CVS checkouts.
+** AC_CONFIG_MACRO_DIR
+ Use this macro to declare the directory for local m4 macros for aclocal.
+
* Major changes in Autoconf 2.57f
Released 2003-10-01, by Akim Demaille.
@file{install} from it if there is no @file{Makefile}.
@end defmac
+Similarly, packages that use @command{aclocal} should declare where
+local macros can be found using @code{AC_CONFIG_MACRO_DIR}.
+
+@defmac AC_CONFIG_MACRO_DIR (@var{dir})
+@acindex{CONFIG_MACRO_DIR}
+Future versions of @command{autopoint}, @command{libtoolize},
+@command{aclocal} and @command{autoreconf} will use directory
+@var{dir} as the location of additional local Autoconf macros. Be
+sure to call this macro directly from @file{configure.ac} so that
+tools that install macros for @command{aclocal} can find the
+declaration before @option{--trace} can be called safely.
+@end defmac
+
@node Output
@section Outputting Files
+## ------------------------ ##
+## Finding aclocal macros. ##
+## ------------------------ ##
+
+
+# AC_CONFIG_MACRO_DIR(DIR)
+# ------------------------
+# Declare directory containing additional macros for aclocal.
+# DIR can be either absolute or relative to $srcdir.
+AC_DEFUN([AC_CONFIG_MACRO_DIR],
+[case $1 in
+ [[\\/]]* | ?:[[\\/]]* ) ac_macro_dir=$1 ;;
+ *) ac_macro_dir=$srcdir/$1 ;;
+esac
+if test -d "$ac_macro_dir"; then :
+else
+ AC_MSG_ERROR([cannot find macro directory `$1'])
+fi
+])# AC_CONFIG_MACRO_DIR
+
+
+
+
## ----------------------------------- ##
## Getting the canonical system type. ##
## ----------------------------------- ##