check libevent is version 2

This commit is contained in:
Yecheng Fu 2015-04-28 14:04:57 +08:00
parent 3278df5f0a
commit 4aedb2b5a4
2 changed files with 6 additions and 2 deletions

View File

@ -56,8 +56,12 @@ AC_ARG_WITH(event,
if test "$withval" != no; then
AC_CHECK_LIB(event,event_base_new,
[LIBS="-levent $LIBS"],
[AC_MSG_ERROR([event is required - see http://libevent.org/])]
[AC_MSG_ERROR([libevent2 is required - see http://libevent.org/])]
)
AC_CHECK_HEADERS(event2/event.h,
[LIBS="-levent $LIBS"],
[AC_MSG_ERROR([libevent2 is required - see http://libevent.org/])]
)
fi
# libsodium

View File

@ -2,6 +2,6 @@
#ifndef VERSION_H
#define VERSION_H
const char *the_version = "0.1.15";
const char *the_version = "0.1.15.11.g3278df5";
#endif