1
AC_LIB_HAVE_LINKFLAGS(curl,,
2
[#include <curl/curl.h>],
5
handle=curl_easy_init();
7
AS_IF([test "x$ac_cv_libcurl" = "xno"],
8
AC_MSG_WARN([libcurl development lib not found: not building auth_http plugin. On Debian this is found in libcurl4-gnutls-dev. On RedHat it's in libcurl-devel.]),[
9
AC_CACHE_CHECK([if libcurl has CURLOPT_USERNAME],
10
[drizzle_cv_curl_have_username],[
15
handle=curl_easy_init();
16
rv= curl_easy_setopt(curl_handle, CURLOPT_USERNAME, "foo");
18
[drizzle_cv_curl_have_username=yes],
19
[drizzle_cv_curl_have_username=no])])
20
AS_IF([test "x$drizzle_cv_curl_have_username" = "xyes"],
21
AC_DEFINE([HAVE_CURLOPT_USERNAME],[1],
22
[Does libcurl provide the CURLOPT_USERNAME constant]))