-dnl experimental libevent smtp client remove this to...
-AC_ARG_WITH(experimental_eventsmtp,
- [ --with-experimental_eventsmtp enable experimental event smtp clients],
- [ if test "x$withval" != "xno" ; then
- CFLAGS="$CFLAGS -rdynamic "
- LDFLAGS="$LDFLAGS -rdynamic "
- SERVER_LDFLAGS="$SERVER_LDFLAGS -rdynamic "
-
-AC_DEFINE(EXPERIMENTAL_SMTP_EVENT_CLIENT, [], [should we use the experimental libevent smtp client?])
-dnl here...
-saved_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS $SERVER_LIBS"
-dnl Check for libevent
-AC_CHECK_HEADER(event.h,
- [AC_CHECK_LIB(event, libcitadel_version_string,
- [
- LIBS="-levent $LIBS $SERVER_LIBS"
- ],
- [
- AC_MSG_ERROR(libevent was not found or is not usable. Please install libevent.)
- ]
- ,
- )],
- [
- AC_MSG_ERROR(event.h was not found or is not usable. Please install libevent.)
- ]
-)
-
-CFLAGS="$saved_CFLAGS"
-dnl and from here to...
- fi
- ]
-)
-dnl here to make it final.