aboutsummaryrefslogtreecommitdiff
path: root/m4/libgnurl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/libgnurl.m4')
-rw-r--r--m4/libgnurl.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/m4/libgnurl.m4 b/m4/libgnurl.m4
index 69aa16605..da72e5e87 100644
--- a/m4/libgnurl.m4
+++ b/m4/libgnurl.m4
@@ -159,6 +159,22 @@ x=CURLOPT_STDERR;
159x=CURLOPT_VERBOSE; 159x=CURLOPT_VERBOSE;
160])],libgnurl_cv_lib_gnurl_usable=yes,libgnurl_cv_lib_gnurl_usable=no) 160])],libgnurl_cv_lib_gnurl_usable=yes,libgnurl_cv_lib_gnurl_usable=no)
161 161
162# BEGIN Changes from original libcurl.m4:
163# Give it a 2nd shot using 'gnurl/curl.h'
164 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <gnurl/curl.h>],[
165/* Try and use a few common options to force a failure if we are
166 missing symbols or can't link. */
167int x;
168curl_easy_setopt(NULL,CURLOPT_URL,NULL);
169x=CURL_ERROR_SIZE;
170x=CURLOPT_WRITEFUNCTION;
171x=CURLOPT_FILE;
172x=CURLOPT_ERRORBUFFER;
173x=CURLOPT_STDERR;
174x=CURLOPT_VERBOSE;
175])],libgnurl_cv_lib_gnurl_usable=yes)
176# END Changes from original libcurl.m4:
177
162 CPPFLAGS=$_libgnurl_save_cppflags 178 CPPFLAGS=$_libgnurl_save_cppflags
163 LIBS=$_libgnurl_save_libs 179 LIBS=$_libgnurl_save_libs
164 unset _libgnurl_save_cppflags 180 unset _libgnurl_save_cppflags