aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2011-04-19 01:03:58 +0200
committerStefan Bühler <stbuehler@web.de>2011-04-19 01:03:58 +0200
commitfd45ac88e281a1d335abba2dcc65cb85c9a66cdb (patch)
tree024e48add3d9587aad2ce5935472804bf6f558eb
parent80d85493ec088bc083219e694ca25e8a2c1c4889 (diff)
downloadmultiwatch-fd45ac88e281a1d335abba2dcc65cb85c9a66cdb.tar.gz
multiwatch-fd45ac88e281a1d335abba2dcc65cb85c9a66cdb.zip
[build] Fix detection of libev (fixes #2307)
-rw-r--r--CMakeLists.txt2
-rw-r--r--configure.ac4
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c05f387..f62ea81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
diff --git a/configure.ac b/configure.ac
index 779b79c..725931b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,9 +22,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.