Check for ev_time instead of ev_loop (ev_loop has been renamed in libev4)
This commit is contained in:
parent
adaf8af1ff
commit
9c2b3d4915
@ -31,7 +31,7 @@ ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
||||
# libev
|
||||
CHECK_INCLUDE_FILES(ev.h HAVE_EV_H)
|
||||
IF(HAVE_EV_H)
|
||||
CHECK_LIBRARY_EXISTS(ev ev_loop "" HAVE_LIBEV)
|
||||
CHECK_LIBRARY_EXISTS(ev ev_time "" HAVE_LIBEV)
|
||||
IF(HAVE_LIBEV)
|
||||
SET(EV_LIBRARIES ev)
|
||||
SET(EV_STATIC_LIBRARIES ev;m)
|
||||
|
@ -21,9 +21,9 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0, [
|
||||
|
||||
# lib ev
|
||||
AC_CHECK_HEADERS([ev.h], [], [AC_MSG_ERROR("ev.h not found")])
|
||||
AC_CHECK_LIB([ev], [ev_loop], [
|
||||
AC_CHECK_LIB([ev], [ev_time], [
|
||||
LIBS="-lev ${LIBS}"
|
||||
AC_DEFINE([HAVE_LIBEV], [1], [ev_loop in -lev])
|
||||
AC_DEFINE([HAVE_LIBEV], [1], [ev_time in -lev])
|
||||
], [AC_MSG_ERROR("libev not found")])
|
||||
|
||||
# Checks for header files.
|
||||
|
Loading…
Reference in New Issue
Block a user