1
DRIZZLE_PLUGIN(auth_http,[HTTP Authentication Plugin],
2
[HTTP based authentications])
3
DRIZZLE_PLUGIN_DYNAMIC(auth_http, [libauth_http.la])
4
DRIZZLE_PLUGIN_STATIC(auth_http, [libauth_http.a])
5
DRIZZLE_PLUGIN_ACTIONS(auth_http, [
6
AC_LIB_HAVE_LINKFLAGS(curl,,
7
[#include <curl/curl.h>],
10
handle=curl_easy_init();
12
AS_IF([test "x$ac_cv_libcurl" = "xno"],
13
AC_MSG_WARN([libcurl not working: not building auth_http plugin]),[
14
AC_CACHE_CHECK([if libcurl has CURLOPT_USERNAME],
15
[drizzle_cv_curl_have_username],[
20
handle=curl_easy_init();
21
rv= curl_easy_setopt(curl_handle, CURLOPT_USERNAME, "foo");
23
[drizzle_cv_curl_have_username=yes],
24
[drizzle_cv_curl_have_username=no])])
25
AS_IF([test "x$drizzle_cv_curl_have_username" = "xyes"],
26
AC_DEFINE([HAVE_CURLOPT_USERNAME],[1],
27
[Does libcurl provide the CURLOPT_USERNAME constant]))
29
DRIZZLED_PLUGIN_DEP_LIBS="${DRIZZLED_PLUGIN_DEP_LIBS} ${LIBCURL}"
31
AM_CONDITIONAL(BUILD_AUTH_HTTP,[test "${ac_cv_libcurl}" = "yes"])
3
title=HTTP Authentication Plugin
4
description=HTTP based authentications
6
build_conditional="${ac_cv_libcurl}" = "yes"