From: Ralf Wildenhues Date: Fri, 10 Apr 2009 14:37:41 +0000 (+0200) Subject: Note that AC_DEFUN is needed for aclocal. X-Git-Tag: v2.64~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d882037ec027f1860b574284394877a446e7ce2b;p=thirdparty%2Fautoconf.git Note that AC_DEFUN is needed for aclocal. * doc/autoconf.texi (Coding Style): Public third-party macros should be AC_DEFUN'ed. Report by John Calcote. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 7ee10f36d..5daf08b59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-04-10 Ralf Wildenhues + + Note that AC_DEFUN is needed for aclocal. + * doc/autoconf.texi (Coding Style): Public third-party macros + should be AC_DEFUN'ed. + Report by John Calcote. + 2009-04-10 Eric Blake Add undocumented _AS_CLEAN_DIR. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 5e490fec3..b5ff0af6f 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -13553,6 +13553,9 @@ macro doesn't use @code{AC_REQUIRE}, is expected to never be the object of an @code{AC_REQUIRE} directive, and macros required by other macros inside arguments do not need to be expanded before this macro, then use @code{m4_define}. In case of doubt, use @code{AC_DEFUN}. +Also take into account that public third-party macros need to use +@code{AC_DEFUN} in order to be found by @command{aclocal} +(@pxref{Extending aclocal,,, automake, @acronym{GNU} Automake}). All the @code{AC_REQUIRE} statements should be at the beginning of the macro, and each statement should be followed by @code{dnl}.