diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/libgnurl.m4 | 16 |
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; | |||
159 | x=CURLOPT_VERBOSE; | 159 | x=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. */ | ||
167 | int x; | ||
168 | curl_easy_setopt(NULL,CURLOPT_URL,NULL); | ||
169 | x=CURL_ERROR_SIZE; | ||
170 | x=CURLOPT_WRITEFUNCTION; | ||
171 | x=CURLOPT_FILE; | ||
172 | x=CURLOPT_ERRORBUFFER; | ||
173 | x=CURLOPT_STDERR; | ||
174 | x=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 |