Project

General

Profile

Bug #2300 ยป 0001-backport-eea9b56d16c705c-from-lighttpd-2.0.patch

backported patch - mixi, 2011-03-06 12:37

View differences:

cmake/FindLibEV.cmake
27 27
		CHECK_INCLUDE_FILES(ev.h HAVE_EV_H)
28 28
		IF(HAVE_EV_H)
29 29
# 			MESSAGE(STATUS "Looking for lib ev in ${LIBEV_LIBDIR}")
30
			CHECK_LIBRARY_EXISTS(ev ev_loop "${LIBEV_LIBDIR}" HAVE_LIBEV)
30
			CHECK_LIBRARY_EXISTS(ev ev_time "${LIBEV_LIBDIR}" HAVE_LIBEV)
31 31
			IF(HAVE_LIBEV)
32 32
				SET(LIBEV_CFLAGS "" CACHE INTERNAL "")
33 33
				SET(LIBEV_LDFLAGS "-L${LIBEV_LIBDIR} -lev" CACHE INTERNAL "")
......
45 45
			CHECK_INCLUDE_FILES(ev.h HAVE_EV_H)
46 46
			IF(HAVE_EV_H)
47 47
# 				MESSAGE(STATUS "Looking for lib ev")
48
				CHECK_LIBRARY_EXISTS(ev ev_loop "" HAVE_LIBEV)
48
				CHECK_LIBRARY_EXISTS(ev ev_time "" HAVE_LIBEV)
49 49
				IF(HAVE_LIBEV)
50 50
					SET(LIBEV_CFLAGS "" CACHE INTERNAL "")
51 51
					SET(LIBEV_LDFLAGS "-lev" CACHE INTERNAL "")
configure.ac
105 105
			LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
106 106
		else
107 107
			AC_CHECK_HEADERS([ev.h],[
108
				AC_CHECK_LIB([ev], [ev_loop], [
108
				AC_CHECK_LIB([ev], [ev_time], [
109 109
						LIBEV_CFLAGS=""
110 110
						LIBEV_LIBS="-lev"
111 111
					],[
112
- 
    (1-1/1)