~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libmemcached.m4

  • Committer: Monty Taylor
  • Date: 2009-07-14 22:35:09 UTC
  • mto: (1093.1.16 captain)
  • mto: This revision was merged to the branch mainline in revision 1097.
  • Revision ID: mordred@inaugust.com-20090714223509-og937ckubmxomn89
pandora-buildĀ v0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
 
3
dnl gives unlimited permission to copy and/or distribute it,
 
4
dnl with or without modifications, as long as this notice is preserved.
 
5
 
 
6
AC_DEFUN([_PANDORA_SEARCH_LIBMEMCACHED],[
 
7
  AC_REQUIRE([AC_LIB_PREFIX])
 
8
 
 
9
  dnl --------------------------------------------------------------------
 
10
  dnl  Check for libmemcached
 
11
  dnl --------------------------------------------------------------------
 
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();
 
19
  ])
 
20
  
 
21
  AM_CONDITIONAL(HAVE_LIBMEMCACHED, [test "x${ac_cv_libmemcached}" = "xyes"])
 
22
  
 
23
  AS_IF([test "x${ac_cv_libmemcached}" = "xyes"], [ PANDORA_WITH_MEMCACHED ])
 
24
 
 
25
])
 
26
 
 
27
AC_DEFUN([PANDORA_HAVE_LIBMEMCACHED],[
 
28
  AC_REQUIRE([_PANDORA_SEARCH_LIBMEMCACHED])
 
29
])
 
30
 
 
31
AC_DEFUN([PANDORA_REQUIRE_LIBMEMCACHED],[
 
32
  AC_REQUIRE([PANDORA_HAVE_LIBMEMCACHED])
 
33
  AS_IF([test x$ac_cv_libmemcached = xno],
 
34
      AC_MSG_ERROR([libmemcached is required for ${PACKAGE}]))
 
35
])