curl-library
Re: [PATCH] add support for pkg-config detection of libidn
Date: Tue, 29 Nov 2011 14:16:43 +0100 (CET)
On Tue, 29 Nov 2011, Mark Brand wrote:
> Searching CURL_CHECK_PKGCONFIG in configure.ac turns up several places where
> pkg-config is used These probably model the pattern you would like to see
> used, but I would like to ask for confirmation of this. It's rather verbose,
> especially compared to PKG_CHECK_MODULES and there is a lot of repeated
> logic. I would almost suggest implementing something like PKG_CHECK_MODULES
> to tidy this up, but then it already exists! In the real world the best
> option might be just to repeat the logic again for libidn. What is your
> view?
Basically, we avoid depending on pkg-config's m4 macros by doing our own -
we've already seen how PKG_CHECK_MODULES isn't working on a range of build
machines.
So instead of adding another buildconf requirement, we provide the logic
ourselves.
I think we can simplify our configure script a lot by writing up our own
PKG_CHECK_MODULES version and use that consistently through-out. Currently we
call CURL_CHECK_PKGCONFIG first and then a series of pkg-config invokes for
lots of dependencies...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-11-29