cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is autoconf macro LIBCURL_CHECK_CONFIG() re-entrant?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 17 Sep 2012 22:43:22 +0200 (CEST)

On Mon, 17 Sep 2012, Petr Pisar wrote:

> Am I right LIBCURL_CHECK_CONFIG() is not re-entrant?

It seems it returns the same result the second time you call it without taking
into account if you have new arguments. I consider that a minor flaw in its
design.

> What do you recommend?

I think I'd favor fixing the m4 to cache the results based on the given
arguments.

> I wanted to prevent from running curl-config manually. However I see now you
> have handy `--checkfor' curl-config option. Can I assume if
> LIBCURL_CHECK_CONFIG() presents, then curl-config executable will be
> available too?

Since you're probably doing this to be able to run your configure script on
just about any random *nix machine, I'm afraid that there can be no such
guarantee even though I would guess that such a correlation is likely.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-17