~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_http/plug.in

  • Committer: Mark Atwood
  • Date: 2009-04-08 01:22:11 UTC
  • mto: (971.1.71 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: me@mark.atwood.name-20090408012211-rpoz0fem4exqt247
add auth_http plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_MANDATORY(auth_http)  dnl Default
 
6
 
 
7
DRIZZLE_PLUGIN_ACTIONS(auth_http, [
 
8
  AC_LIB_HAVE_LINKFLAGS(curl,,
 
9
    [#include <curl/curl.h>],
 
10
    [
 
11
      CURL *handle;
 
12
      handle=curl_easy_init();
 
13
    ])
 
14
    AS_IF([test "x$ac_cv_libcurl" = "xno"],
 
15
          AC_MSG_WARN([libcurl not working: not building auth_http plugin]))
 
16
  DRIZZLED_PLUGIN_DEP_LIBS="${DRIZZLED_PLUGIN_DEP_LIBS} ${LIBCURL}"
 
17
  AM_CONDITIONAL(BUILD_AUTH_HTTP,[test "${ac_cv_libcurl}" = "yes"])
 
18
])