X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_have_libevent.m4;h=c7a6c645256f80f19368de9ab9a6c121c6429eb6;hb=9169cee9ec0f231b3117a0d5a7840d2067f29610;hp=3c15e3c6d12dada39e6ebf7bd349cdbb7ef89a8c;hpb=61b5e9c68b7e931ed4e79a39ab9e5b1031d0030d;p=awesomized%2Flibmemcached diff --git a/m4/pandora_have_libevent.m4 b/m4/pandora_have_libevent.m4 index 3c15e3c6..c7a6c645 100644 --- a/m4/pandora_have_libevent.m4 +++ b/m4/pandora_have_libevent.m4 @@ -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],[