From: Art Cancro Date: Tue, 27 Dec 2011 18:58:16 +0000 (-0500) Subject: autoconf check for ev_cleanup_start() instead of a test program X-Git-Tag: v8.11~277^2~1 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=8386aabb76377f93c63d819878a3c57d147e11e7 autoconf check for ev_cleanup_start() instead of a test program --- diff --git a/citadel/configure.ac b/citadel/configure.ac index 6e8894d5b..4e0982cbe 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -602,7 +602,7 @@ saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $SERVER_LIBS" dnl Check for libev AC_CHECK_HEADER(ev.h, - [AC_CHECK_LIB(ev, libcitadel_version_string, + [AC_CHECK_LIB(ev, ev_cleanup_start, [ LIBS="-lev -lm $LIBS $SERVER_LIBS" ], @@ -617,25 +617,6 @@ AC_CHECK_HEADER(ev.h, ) CFLAGS="$saved_CFLAGS" -AC_MSG_CHECKING(Checking version of libev) -AC_TRY_RUN([ - #include - main() { - printf("libev is version %d.%d\n", ev_version_major(), ev_version_minor()); - if (ev_version_major() >= 4) { - exit(0); - } - exit(1); - } - ], - [ - AC_MSG_RESULT(This will do just fine, thank you) - ], - [ - AC_MSG_ERROR(Citadel requires a newer version of libev. More info: http://www.citadel.org/doku.php/installation:start) - ] -) - # The big search for OpenSSL if test "$with_ssl" != "no"; then