[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to link with installed libltdl?

From: Bob Friesenhahn
Subject: Re: how to link with installed libltdl?
Date: Thu, 1 Sep 2005 13:36:00 -0500 (CDT)

On Thu, 1 Sep 2005, Andreas Jellinghaus wrote:

now I wonder: if the libtool *.la files contain all information about
the dependencies etc, then shouldn't there be some macro that searches
for that *.la files, gets the dependencies from it, does the compile
and link test and sets up CFLAGS and LIBS to include whatever is necessary?

is there something that works like AC_CHECK_LIB, except that AC_CHECK_LIB
seems to have no clue about *.la files, so is there some alternative that

Libtool itself understands the content of *.la files. conceivably you can execute libtool from within the configure script to perform tests. Autoconf is not going to do this automatically for you though so you would not be able to use AC_CHECK_LIB directly. It *might* be possible to make use of AC_CHECK_LIB by temporarily altering the definition of CC and LD.

There has always been a bit of an impedance mis-match between autoconf and libtool since autoconf does not depend on libtool or know about .la files.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]