[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adding libraries and header file directories
From: |
Stepan Kasal |
Subject: |
Re: adding libraries and header file directories |
Date: |
Mon, 13 Nov 2006 11:12:42 +0100 |
User-agent: |
Mutt/1.4.2.1i |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: adding libraries and header file directories,
Stepan Kasal <=