Hello Ralf,
On Fri, Nov 10, 2006 at 05:50:18PM +0100, Jim Rainville wrote:
> + aclocal-1.10 -I m4
...
> configure.ac:80: warning: macro `AM_LIBTOOLFLAGS' not found in library
On Sun, Nov 12, 2006 at 06:43:44PM +0100, Ralf Wildenhues wrote:
> The warning shouldn't be there. Please post the configure.ac code that
> deals with this, so we can find out whether there is a bug in automake.
just a quick inspection of the code shows that there is a bug in
aclocal. Observe:
; echo 'AC_SUBST( AM_CFLAGS, value)' >configure.ac ; aclocal
configure.ac:1: warning: macro `AM_CFLAGS' not found in library
;
If my guess is right, then the workaround is easy; use
AC_SUBST([AM_LIBTOOLFLAGS], [value])
which is the proper quoting anyway.
The code in aclocal.in looks like this:
if (! &search && /(^|\s+)(AM_[A-Z0-9_]+)($|[^\]\)=A-Z0-9_])/)
{ ...
msg (..., "warning: macro `$2' not found in library");
}
Actually, I think this whole `if' can be deleted. As a comment in
add_macro in aclocal.in puts it:
# Ignore unknown required macros. Either they are not really
# needed (e.g., a conditional AC_REQUIRE), in which case aclocal
# should be quiet, or they are needed and Autoconf itself will
# complain when we trace for macro usage later.
Have a nice day,
Stepan