> On Thursday 24 May 2012 17:14:30 Mike Frysinger wrote:
>> On Thursday 24 May 2012 16:31:04 Giuseppe Scrivano wrote:
>>> Mike Frysinger <vap...@gentoo.org> writes:
>>>> Newer versions of openssl ship with pkg-config files, so if we can
>>>> detect it via those, do so.  If that fails, fall back to the classic
>>>> method.
>>>
>>> thanks for your contribution.  It seems like a big change in the way
>>> configure will work.  I think that if we want to use pkg-config then we
>>> should use it for any external library involved, not just openssl.
>>
>> zlib, pcre, uuid, and gnutls can be updated to search pkg-config, but
>> gcrypt and gpg-error cannot because the upstream there is being
>> pig-headed

...

>> lemme know which way you want to go, and i can send out an update that also
>> checks for zlib/pcre/uuid/gnutls via pkg-config.

I'll take this opportunity to point out that I had İlim (our GSoC
student, who has been working on support for metalink, and multiple
connections for download of a single resource) use pkg-config to detect
the libmetalink library. I believe his first iteration of support in
configure.ac had used other means to do libmetalink (gnulib's
facilities, IIRC), which we could fall back to if pkg-config isn't desired.

Personally, I favor using pkg-config where possible, particularly since
some packages sometimes need other libraries to be involved too, and
pkg-config can just tell you the full stack of -lfoo -lbar, and
-I/includes/here and -I/includes/there, without hassling the user to
specify all that themselves. libmetalink, for instance, also needs
-lxml, I believe.

-mjc

Reply via email to