[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 09:52:15 -0500 (CDT)

On Thu, 1 Sep 2005, Howard Chu wrote:

I guess I should better probe for libdl and
link with it, too? anthing else?

If you use libtool for linking, and the file is installed, then dependencies are taken care of automatically. If you're not using libtool for linking, then you're making a mistake. The point of using libtool and libltdl is to avoid having to check for other system-specific dependencies. Checking for libdl is (a) redundant since libtool's configure script would have already looked for it and (b) insufficient since other platforms may use some other name for their dynamic linking support library.

So it seems that a libtool-provided macro should be used in to test for an installed libltdl. Testing for it in a simple way could well indeed result in false negatives due to libltdl depending on some other library (e.g. -ldl). It is not necessary for a package to include its own copy of libtool in order to make use of it. Libtool may already be installed in a standard location.

I may be missing something, but all the libltdl-related macros I see are for the case of when libltdl is bundled with the package. I don't see one for simply testing for an already installed libltdl.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

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