curl-library
Is autoconf macro LIBCURL_CHECK_CONFIG() re-entrant?
Date: Mon, 17 Sep 2012 21:54:56 +0200
Hello,
I use autoconf in my project, thus I check for cURL presence by calling
LIBCURL_CHECK_CONFIG() and then testing "$LIBCURL" value. So far good.
Now I need check for specific cURL version in addition to know whether I need
a work-around in my application for a cURL bug that will be fixed in upcoming
7.28.0 version.
Thus I added second LIBCURL_CHECK_CONFIG() call in form:
LIBCURL_CHECK_CONFIG(
[],
[7.28.0],
AC_MSG_WARN([Not affected]),
AC_MSG_WARN([Affected]
)
When running such configure, I get correct report about not having 7.28.0
version, but then I always get the ACTION-IF-YES branch evaluated.
I think this is because of caching used inside LIBCURL_CHECK_CONFIG() macro.
Am I right LIBCURL_CHECK_CONFIG() is not re-entrant? What do you recommend?
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?
-- Petr
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- application/pgp-signature attachment: stored