~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libmemcached.m4

pandora-buildĀ v0.35

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
  dnl  Check for libmemcached
11
11
  dnl --------------------------------------------------------------------
12
12
 
13
 
  AC_LIB_HAVE_LINKFLAGS(memcached,,[
14
 
    #include <libmemcached/memcached.h>
15
 
  ], [
16
 
    memcached_st memc;
17
 
    memcached_dump_func *df;
18
 
    memcached_version();
 
13
  AC_ARG_ENABLE([libmemcached],
 
14
    [AS_HELP_STRING([--disable-libmemcached],
 
15
      [Build with libmemcached support @<:@default=on@:>@])],
 
16
    [ac_enable_libmemcached="$enableval"],
 
17
    [ac_enable_libmemcached="yes"])
 
18
 
 
19
  AS_IF([test "x$ac_enable_libmemcached" = "xyes"],[
 
20
    AC_LIB_HAVE_LINKFLAGS(memcached,,[
 
21
      #include <libmemcached/memcached.h>
 
22
    ],[
 
23
      memcached_st memc;
 
24
      memcached_dump_func *df;
 
25
      memcached_version();
 
26
    ])
 
27
  ],[
 
28
    ac_cv_libmemcached="no"
19
29
  ])
20
30
  
21
31
  AM_CONDITIONAL(HAVE_LIBMEMCACHED, [test "x${ac_cv_libmemcached}" = "xyes"])
22
32
  
23
33
  AS_IF([test "x${ac_cv_libmemcached}" = "xyes"], [ PANDORA_WITH_MEMCACHED ])
24
 
 
25
34
])
26
35
 
27
36
AC_DEFUN([PANDORA_HAVE_LIBMEMCACHED],[