Add check for libevent_extra and evhttp.h

This commit is contained in:
Julien BLACHE 2009-04-22 17:42:17 +02:00
parent c9494a898e
commit 13c06803f8

View File

@ -58,6 +58,11 @@ PKG_CHECK_MODULES(FFMPEG, [ libavcodec libavformat ])
AC_CHECK_HEADER(event.h, , AC_MSG_ERROR([event.h not found]))
AC_CHECK_LIB([event_core], [event_init], [LIBEVENT_LIBS="-levent_core"], AC_MSG_ERROR([libevent not found]))
AC_CHECK_HEADER(evhttp.h, , AC_MSG_ERROR([evhttp.h not found]))
save_LIBS="$LIBS"
LIBS=-levent_core
AC_CHECK_LIB([event_extra], [evhttp_new], [LIBEVENT_LIBS="$LIBEVENT_LIBS -levent_extra"], AC_MSG_ERROR([libevent not found]))
LIBS="$save_LIBS"
AC_SUBST(LIBEVENT_LIBS)
AC_CHECK_HEADER(avl.h, , AC_MSG_ERROR([avl.h not found]))