Browse Source

[build] Fix detection of libev

personal/stbuehler/wip
Stefan Bühler 10 years ago
parent
commit
eea9b56d16
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      cmake/FindLibEV.cmake
  2. +1
    -1
      configure.ac

+ 2
- 2
cmake/FindLibEV.cmake View File

@ -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 "")


+ 1
- 1
configure.ac View File

@ -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])


Loading…
Cancel
Save