diff options
Diffstat (limited to '')
-rw-r--r-- | aclocal/libevent.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/aclocal/libevent.m4 b/aclocal/libevent.m4 new file mode 100644 index 0000000..e0b820b --- /dev/null +++ b/aclocal/libevent.m4 @@ -0,0 +1,12 @@ +dnl Checks for libevent +AC_DEFUN([AC_LIBEVENT], [ + + dnl Check for libevent, but do not add -levent_core to LIBS + AC_CHECK_LIB([event_core], [event_base_dispatch], [LIBEVENT=-levent_core], + [AC_MSG_ERROR([libevent not found.])]) + AC_SUBST(LIBEVENT) + + AC_CHECK_HEADERS([event2/event.h], , + [AC_MSG_ERROR([libevent headers not found.])]) + +])dnl |