~mm-yuhu/gearmand/server-funcs

« back to all changes in this revision

Viewing changes to m4/pandora_have_libmemcached.m4

  • Committer: Monty Taylor
  • Date: 2010-01-13 10:48:24 UTC
  • mto: This revision was merged to the branch mainline in revision 314.
  • Revision ID: mordred@inaugust.com-20100113104824-qw8697wkg61uztmz
pandora-buildĀ v0.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
      memcached_dump_func *df;
25
25
      memcached_lib_version();
26
26
    ])
 
27
    AC_LIB_HAVE_LINKFLAGS(memcachedprotocol,,[
 
28
      #include <libmemcached/protocol_handler.h>
 
29
    ],[
 
30
      struct memcached_protocol_st *protocol_handle;
 
31
      protocol_handle= memcached_protocol_create_instance();
 
32
    ])
27
33
  ],[
28
34
    ac_cv_libmemcached="no"
29
35
  ])
30
36
  
 
37
  AC_CACHE_CHECK([if libmemcached has memcached_server_fn],
 
38
    [pandora_cv_libmemcached_server_fn],
 
39
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
40
#include <libmemcached/memcached.h>
 
41
memcached_server_fn callbacks[1];
 
42
    ]])],
 
43
    [pandora_cv_libmemcached_server_fn=yes],
 
44
    [pandora_cv_libmemcached_server_fn=no])])
 
45
  AS_IF([test "x$pandora_cv_libmemcached_server_fn" = "xyes"],[
 
46
    AC_DEFINE([HAVE_MEMCACHED_SERVER_FN],[1],[If we have the new memcached_server_fn typedef])
 
47
  ])
 
48
 
31
49
  AM_CONDITIONAL(HAVE_LIBMEMCACHED, [test "x${ac_cv_libmemcached}" = "xyes"])
32
50
  
33
51
])
41
59
  AS_IF([test x$ac_cv_libmemcached = xno],
42
60
      AC_MSG_ERROR([libmemcached is required for ${PACKAGE}]))
43
61
])
 
62