Thomas Porschberg <[EMAIL PROTECTED]> writes: > what is the recommended way to include project-written m4 macros ?
Many projects use a directory named m4, but there is no common convention. > I include the macros in <project-root>/config/m4 > and call in autogen.sh "aclocal -I config/m4" > > The config directory itself is configured in configure.ac > with AC_CONFIG_AUX_DIR(config). This macro is unrelated to the placement of the input files for aclocal. > Is there something wrong with this approach ? No. > What could be done better ? > How should autoreconf find the m4-macros in such a case ? Add this line to the toplevel Makefile.am: ACLOCAL_AMFLAGS = -I config/m4 Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."