X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fconfigure.ac;h=41c00e0d9d44e212d5c0e1dae7ddd6d4d16b296f;hb=e5b0ab22468d49791f864e1648ded8d0173a6b2e;hp=8401e58b0e8013a162da797390595433b7fd3413;hpb=80598eb9c1cf339151a66e3bdf1b7756efdde1a2;p=citadel.git diff --git a/citadel/configure.ac b/citadel/configure.ac index 8401e58b0..41c00e0d9 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.13], [http://www.citadel.org/]) AC_REVISION([$Revision: 5108 $]) AC_CONFIG_SRCDIR([citserver.c]) AC_CONFIG_HEADER(sysdep.h) @@ -247,11 +247,6 @@ fi AC_CHECK_LIB(intl, libintl_bindtextdomain, [LDFLAGS="$LDFLAGS -lintl"]) - - -AC_ARG_ENABLE(threaded-client, [ --disable-threaded-client - disable multithreaded client]) - AC_ARG_ENABLE(pie, [ --enable-pie build position-independent executables]) AC_ARG_WITH(pam, [ --with-pam use PAM if present (see PAM.txt before you try this)]) @@ -284,10 +279,6 @@ else test -d /usr/local/BerkeleyDB.4.5 && db_dir=/usr/local/BerkeleyDB.4.5 fi -dnl By default, we only build the client (citadel and whobbs) unless we can -dnl figure out how to build with POSIX threads. -TARGETS=client - AC_CANONICAL_HOST PTHREAD_DEFS=-D_REENTRANT AC_MSG_CHECKING([how to compile with POSIX threads]) @@ -605,15 +596,20 @@ saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $SERVER_LIBS" dnl Check for libev AC_CHECK_HEADER(ev.h, - [AC_CHECK_LIB(ev, ev_cleanup_start, - [ + [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.) ] @@ -991,10 +987,7 @@ AC_CACHE_CHECK([for pthread_create], ac_cv_func_pthread_create, #endif], ac_cv_func_pthread_create=yes, ac_cv_func_pthread_create=no)]) if test "$ac_cv_func_pthread_create" = yes; then - test "$DATABASE" && TARGETS="client server utils" - if test "x$enable_threaded_client" != xno; then - AC_DEFINE(THREADED_CLIENT, [], [define this if you want to enable the multithreaded client]) - fi + test "$DATABASE" && TARGETS="server utils" fi AC_REPLACE_FUNCS(snprintf getutline) @@ -1079,7 +1072,6 @@ if test "$abs_srcdir" != "$abs_builddir"; then fi mkdir -p $abs_builddir/utils mkdir -p $abs_builddir/utillib - mkdir -p $abs_builddir/textclient fi if test -n "$srcdir"; then