Merge
[m6w6/libmemcached] / m4 / pandora_have_libevent.m4
index 3c15e3c6d12dada39e6ebf7bd349cdbb7ef89a8c..c7a6c645256f80f19368de9ab9a6c121c6429eb6 100644 (file)
@@ -1,5 +1,5 @@
-dnl  Copyright (C) 2009 Sun Microsystems
-dnl This file is free software; Sun Microsystems
+dnl  Copyright (C) 2009 Sun Microsystems, Inc.
+dnl This file is free software; Sun Microsystems, Inc.
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
@@ -25,6 +25,15 @@ AC_DEFUN([_PANDORA_SEARCH_LIBEVENT],[
   ]) 
 
   AM_CONDITIONAL(HAVE_LIBEVENT, [test "x${ac_cv_libevent}" = "xyes"])
+
+  AS_IF([test "x${ac_cv_libevent}" = "xyes"],[
+    save_LIBS="${LIBS}"
+    LIBS="${LIBS} ${LTLIBEVENT}"
+    AC_CHECK_FUNCS(event_base_new)
+    AC_CHECK_FUNCS(event_base_free)
+    AC_CHECK_FUNCS(event_base_get_method)
+    LIBS="$save_LIBS"
+  ])
 ])
 
 AC_DEFUN([_PANDORA_HAVE_LIBEVENT],[