Mercurial > feed
comparison m4/libcurl.m4 @ 12:a40cf9c8d615
Update to newer Autoconf
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 19 Jul 2011 09:29:34 -0400 |
parents | ad85b8813e8a |
children |
comparison
equal
deleted
inserted
replaced
11:43c3fbd8527a | 12:a40cf9c8d615 |
---|---|
144 _libcurl_save_cppflags=$CPPFLAGS | 144 _libcurl_save_cppflags=$CPPFLAGS |
145 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" | 145 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" |
146 _libcurl_save_libs=$LIBS | 146 _libcurl_save_libs=$LIBS |
147 LIBS="$LIBCURL $LIBS" | 147 LIBS="$LIBCURL $LIBS" |
148 | 148 |
149 AC_LINK_IFELSE(AC_LANG_PROGRAM([#include <curl/curl.h>],[ | 149 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curl/curl.h>],[ |
150 /* Try and use a few common options to force a failure if we are | 150 /* Try and use a few common options to force a failure if we are |
151 missing symbols or can't link. */ | 151 missing symbols or can't link. */ |
152 int x; | 152 int x; |
153 curl_easy_setopt(NULL,CURLOPT_URL,NULL); | 153 curl_easy_setopt(NULL,CURLOPT_URL,NULL); |
154 x=CURL_ERROR_SIZE; | 154 x=CURL_ERROR_SIZE; |
155 x=CURLOPT_WRITEFUNCTION; | 155 x=CURLOPT_WRITEFUNCTION; |
156 x=CURLOPT_FILE; | 156 x=CURLOPT_FILE; |
157 x=CURLOPT_ERRORBUFFER; | 157 x=CURLOPT_ERRORBUFFER; |
158 x=CURLOPT_STDERR; | 158 x=CURLOPT_STDERR; |
159 x=CURLOPT_VERBOSE; | 159 x=CURLOPT_VERBOSE; |
160 ]),libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no) | 160 ])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no) |
161 | 161 |
162 CPPFLAGS=$_libcurl_save_cppflags | 162 CPPFLAGS=$_libcurl_save_cppflags |
163 LIBS=$_libcurl_save_libs | 163 LIBS=$_libcurl_save_libs |
164 unset _libcurl_save_cppflags | 164 unset _libcurl_save_cppflags |
165 unset _libcurl_save_libs | 165 unset _libcurl_save_libs |