dnl with or without modifications, as long as this notice is preserved.
dnl Which version of the canonical setup we're using
-AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.76])
+AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.78])
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
dnl Force dependency tracking on for Sun Studio builds
])
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],[
dnl Check whether to enable assertions.
AC_DEFUN([PANDORA_HEADER_ASSERT],
[
+ AC_CHECK_HEADERS(assert.h)
AC_MSG_CHECKING([whether to enable assertions])
AC_ARG_ENABLE([assert],
[AS_HELP_STRING([--disable-assert],
[ac_cv_assert="yes"])
AC_MSG_RESULT([$ac_cv_assert])
- AS_IF([test "$ac_cv_assert" = "yes"],
- [AC_CHECK_HEADERS(assert.h)],
+ AS_IF([test "$ac_cv_assert" = "no"],
[AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])])
])