From ef81d219bd11bc307a64b0e264d99a5cdbca2eb9 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 28 Apr 2024 04:43:39 -0700 Subject: [PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac. Document the following gnulib-tool change: 2021-12-19 Bruno Haible gnulib-tool: Don't insist on ACLOCAL_AMFLAGS. * doc/gnulib-tool.texi (Initial import): Update the example gnulib-tool invocation. Document the use of AC_CONFIG_MACRO_DIRS as an alternative to ACLOCAL_AMFLAGS. --- ChangeLog | 10 ++++++++++ doc/gnulib-tool.texi | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5948faf102..137830499a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2024-04-28 Collin Funk + + doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac. + Document the following gnulib-tool change: + 2021-12-19 Bruno Haible + gnulib-tool: Don't insist on ACLOCAL_AMFLAGS. + * doc/gnulib-tool.texi (Initial import): Update the example gnulib-tool + invocation. Document the use of AC_CONFIG_MACRO_DIRS as an alternative + to ACLOCAL_AMFLAGS. + 2024-04-28 Bruno Haible bootstrap: Support checking out a recent GNULIB_REVISION, part 2. diff --git a/doc/gnulib-tool.texi b/doc/gnulib-tool.texi index 0eb3b247e2..1a34673eb2 100644 --- a/doc/gnulib-tool.texi +++ b/doc/gnulib-tool.texi @@ -156,6 +156,7 @@ Don't forget to - add "lib/Makefile" to AC_CONFIG_FILES in ./configure.ac, - mention "lib" in SUBDIRS in Makefile.am, - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am, + or add an AC_CONFIG_MACRO_DIRS([m4]) invocation in ./configure.ac, - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC, - invoke gl_INIT in ./configure.ac. ~/src/libfoo$ @@ -223,6 +224,13 @@ your top-level @file{Makefile.am} file, as in: ACLOCAL_AMFLAGS = -I m4 @end example +Alternatively, add an @code{AC_CONFIG_MACRO_DIRS} invocation in your +@file{configure.ac} file, as in: + +@example +AC_CONFIG_MACRO_DIRS([m4]) +@end example + You are now ready to call the M4 macros in @code{gnulib-comp.m4} from @file{configure.ac}. The macro @code{gl_EARLY} must be called as soon as possible after verifying that the C compiler is working. -- 2.39.5