On Sat, Oct 19, 2024 at 10:01:19AM +0200, Patrice Dumas wrote: > On Sat, Oct 19, 2024 at 09:34:49AM +0200, Patrice Dumas wrote: > > Actually, I am also confused by the lack of AC_CONFIG_MACRO_DIR in the > > main directory, as I do not understand how autoreconf/aclocal can > > determine that gnulib autoconf macros come from gnulib/m4. > > Found it, there is a -I gnulib/m4 for the autogen.sh invocation. > > Maybe we could have a m4 directory separate from gnulib/m4 for both > libtool and gettext m4 files, also both for main configure.ac and > tp/Texinfo/XS/configure.ac, and use AC_CONFIG_MACRO_DIR/AC_CONFIG_MACRO_DIRS > in both main configure.ac and tp/Texinfo/XS/configure.ac?
I've started work on this. It seems to pass some checks but could easily have problems. The gnulib manual has some fiddly steps to follow for using gettext along with gnulib: https://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html We aren't following these steps but maybe keeping a separate directory m4 will actually work. Running ./autogen.sh now seems very slow, taking over half a minute to complete.