Permalink
Browse files

[build] Fix detection of libev

  • Loading branch information...
1 parent 772e66b commit eea9b56d16c705c31110e522540febc5cd0282c9 @stbuehler stbuehler committed Nov 11, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 cmake/FindLibEV.cmake
  2. +1 −1 configure.ac
View
@@ -27,7 +27,7 @@ IF(NOT LIBEV_FOUND)
CHECK_INCLUDE_FILES(ev.h HAVE_EV_H)
IF(HAVE_EV_H)
# MESSAGE(STATUS "Looking for lib ev in ${LIBEV_LIBDIR}")
- CHECK_LIBRARY_EXISTS(ev ev_loop "${LIBEV_LIBDIR}" HAVE_LIBEV)
+ CHECK_LIBRARY_EXISTS(ev ev_time "${LIBEV_LIBDIR}" HAVE_LIBEV)
IF(HAVE_LIBEV)
SET(LIBEV_LIBRARIES ev CACHE INTERNAL "")
SET(LIBEV_CFLAGS "" CACHE INTERNAL "")
@@ -46,7 +46,7 @@ IF(NOT LIBEV_FOUND)
CHECK_INCLUDE_FILES(ev.h HAVE_EV_H)
IF(HAVE_EV_H)
# MESSAGE(STATUS "Looking for lib ev")
- CHECK_LIBRARY_EXISTS(ev ev_loop "" HAVE_LIBEV)
+ CHECK_LIBRARY_EXISTS(ev ev_time "" HAVE_LIBEV)
IF(HAVE_LIBEV)
SET(LIBEV_CFLAGS "" CACHE INTERNAL "")
SET(LIBEV_LDFLAGS "-lev" CACHE INTERNAL "")
View
@@ -74,7 +74,7 @@ PKG_CHECK_MODULES([LIBEV], [libev], [], [
LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
else
AC_CHECK_HEADERS([ev.h],[
- AC_CHECK_LIB([ev], [ev_loop], [
+ AC_CHECK_LIB([ev], [ev_time], [
LIBEV_LIBS="-lev"
],[
AC_MSG_ERROR([libev not found])

0 comments on commit eea9b56

Please sign in to comment.