diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-05-09 12:56:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-05-09 12:56:35 +0000 |
commit | 77475f2ad02ca03b52255b39e1255e048f449f07 (patch) | |
tree | 9ecd414e9b595638c76b5c387c935b0cf47549fb /docs/libcurl | |
parent | 3680a2f6f569bbab0923e2a095ac95206bf0ffb3 (diff) |
Andreas Ntaflos reported a bug in libcurl.m4: When configuring my GNU
autotools project, which optionally (default=yes) uses libcurl on a system
without a (usable) libcurl installation, but not specifying
`--without-libcurl', configure determines correctly that no libcurl is
available, however, the LIBCURL variable gets expanded to `LIBCURL = -lcurl'
in the resulting Makefiles.
David Shaw fixed the flaw.
Diffstat (limited to 'docs/libcurl')
-rw-r--r-- | docs/libcurl/libcurl.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/libcurl/libcurl.m4 b/docs/libcurl/libcurl.m4 index 798427c14..a9bfa2e23 100644 --- a/docs/libcurl/libcurl.m4 +++ b/docs/libcurl/libcurl.m4 @@ -1,7 +1,7 @@ # LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION], # [ACTION-IF-YES], [ACTION-IF-NO]) # ---------------------------------------------------------- -# David Shaw <dshaw@jabberwocky.com> Jan-17-2006 +# David Shaw <dshaw@jabberwocky.com> May-09-2006 # # Checks for libcurl. DEFAULT-ACTION is the string yes or no to # specify whether to default to --with-libcurl or --without-libcurl. @@ -210,6 +210,9 @@ x=CURLOPT_VERBOSE; AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1]) eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes done + else + unset LIBCURL + unset LIBCURL_CPPFLAGS fi fi |