X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fconfigure.ac;h=95887497465108a8a9c0580ef7806b6d4b71701c;hb=53481be28de6082a8f59dad096ff7df7601fa1a7;hp=6e8894d5bc49cf8c6addd90e013947ffae3fa7a7;hpb=329d6e09afa3a9335cbc05e8902e3140b5021d6d;p=citadel.git diff --git a/citadel/configure.ac b/citadel/configure.ac index 6e8894d5b..958874974 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.52) -AC_INIT([Citadel], [8.03], [http://www.citadel.org/]) +AC_INIT([Citadel], [8.14], [http://www.citadel.org/]) AC_REVISION([$Revision: 5108 $]) AC_CONFIG_SRCDIR([citserver.c]) AC_CONFIG_HEADER(sysdep.h) @@ -171,20 +171,23 @@ AC_SUBST(LOCALEDIR) dnl Checks for the zlib compression library. -if test "x$with_zlib" != xno ; then - AC_CHECK_HEADERS(zlib.h, - [AC_CHECK_LIB(z, zlibVersion, - [ok_zlib=yes],, - )]) -fi - -if test "x$ok_zlib" = xyes ; then - LDFLAGS="-lz $LDFLAGS" - AC_DEFINE(HAVE_ZLIB, [], [define this if you have zlib compression available]) -fi - - - +saved_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $SERVER_LIBS" +AC_CHECK_HEADER(zlib.h, + [AC_CHECK_LIB(z, zlibVersion, + [ + LIBS="-lz $LIBS $SERVER_LIBS" + ], + [ + AC_MSG_ERROR(zlib was not found or is not usable. Please install zlib.) + ] + , + )], + [ + AC_MSG_ERROR(zlib.h was not found or is not usable. Please install zlib.) + ] +) +CFLAGS="$saved_CFLAGS" dnl Here is the check for a libc integrated iconv AC_ARG_ENABLE(iconv, @@ -602,40 +605,26 @@ saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $SERVER_LIBS" dnl Check for libev AC_CHECK_HEADER(ev.h, - [AC_CHECK_LIB(ev, libcitadel_version_string, - [ + [AC_TRY_COMPILE([#include +#include ], + [ + ev_cleanup abort_by_shutdown; + struct ev_loop *event_base; + ev_cleanup_start(event_base, &abort_by_shutdown); + ], + [ LIBS="-lev -lm $LIBS $SERVER_LIBS" - ], + ], [ AC_MSG_ERROR(libev was not found or is not usable. Please install libev.) - ] - , - )], + ]) + ], [ AC_MSG_ERROR(ev.h was not found or is not usable. Please install libev.) ] ) 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