[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.
From: |
Collin Funk |
Subject: |
[PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac. |
Date: |
Sun, 28 Apr 2024 04:45:28 -0700 |
Document the following gnulib-tool change:
2021-12-19 Bruno Haible <bruno@clisp.org>
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 <collin.funk1@gmail.com>
+
+ doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.
+ Document the following gnulib-tool change:
+ 2021-12-19 Bruno Haible <bruno@clisp.org>
+ 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 <bruno@clisp.org>
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 @@ @node Initial import
- 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 @@ @node Initial import
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.44.0
- [PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.,
Collin Funk <=