autoconf
[Top][All Lists]
Advanced

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

Re: detecting required libraries in AC_CHECK_LIB


From: Peter Eisentraut
Subject: Re: detecting required libraries in AC_CHECK_LIB
Date: Mon, 4 Jun 2001 17:49:41 +0200 (CEST)

Steve M. Robbins writes:

> I expect that one cannot do so in general.  But I'll take a partial
> solution, if there is one.  On linux, at least, "ldd libfoo.so" will
> tell me which other shared objects libfoo links against, so this
> info is embedded in the shared object.

If the info is embedded in the shared object then your work is done
because the dynamic loader will automatically load the dependent libraries
at run-time.  The case you're concerned about is when this has not been
done (shame on that package), or you're dealing with static libraries.

Unfortunately it's hardly possible to automatically detect dependencies
that have not been declared anywhere by a means other than trying out all
possible candidates.

-- 
Peter Eisentraut   address@hidden   http://funkturm.homeip.net/~peter




reply via email to

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