This commit is contained in:
whottgen
2004-10-11 09:31:54 +00:00
parent 7bf3e781bf
commit 49776e1fbd
11 changed files with 169 additions and 227 deletions

View File

@ -8,6 +8,76 @@ AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AC_LANG_C
AC_ARG_WITH(bdb-lib-dir,
[AC_HELP_STRING(--with-bdb-lib-dir, [
Directory for Berkeley DB library files])],
[ case "$withval" in
no)
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
AC_MSG_ERROR(Need bdb-lib-dir)
fi
;;
yes)
;;
*)
LDFLAGS="$LDFLAGS -L$withval -R$withval"
;;
esac ]
)
AC_ARG_WITH(bdb-inc-dir,
[AC_HELP_STRING(--with-bdb-inc-dir, [
Directory for Berkeley include files])],
[ case "$withval" in
no)
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
AC_MSG_ERROR(Need bdb-inc-dir)
fi
;;
yes)
;;
*)
CPPFLAGS="$CPPFLAGS -I$withval"
;;
esac ]
)
ENABLE_VERIFY_CACHE=1
dnl AC_ARG_ENABLE(verify-cache,
dnl [AC_HELP_STRING(--enable-verify-cache, [
dnl Enables the cache in the verify worker.
dnl Required a dbm implemenation.
dnl (default=yes)])],
dnl if test "x$enableval" = xyes; then ENABLE_VERIFY_CACHE=1; fi
dnl if test "x$enableval" = xno; then ENABLE_VERIFY_CACHE=0; fi
dnl )
dnl verify_BUILD=
dnl AC_ARG_ENABLE(verify-worker,
dnl [AC_HELP_STRING(--enable-verify-worker, [
dnl Enables the sender address verification worker.
dnl (default=no)])],
dnl verify_BUILD=libverify_worker.la
dnl )
dnl test_BUILD=
dnl AC_ARG_ENABLE(test-worker,
dnl [AC_HELP_STRING(--enable-test-worker, [
dnl Enables the test worker (just an example).
dnl (default=no)])],
dnl test_BUILD=libtest_workers.la
dnl )
dnl cyrus_BUILD=
dnl AC_ARG_ENABLE(cyrus-worker,
dnl [AC_HELP_STRING(--enable-cyrus-worker, [
dnl Enables the cyrus mailbox checker.
dnl (default=no)])],
dnl cyrus_BUILD=libcyrus_worker.la
dnl )
@ -59,50 +129,6 @@ AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strerror strrchr st
AC_ARG_WITH(bdb-lib-dir,
[AC_HELP_STRING(--with-bdb-lib-dir, [
Directory for Berkeley DB library files])],
[ case "$withval" in
no)
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
AC_MSG_ERROR(Need bdb-lib-dir)
fi
;;
yes)
;;
*)
LDFLAGS="$LDFLAGS -L$withval -R$withval"
;;
esac ]
)
AC_ARG_WITH(bdb-inc-dir,
[AC_HELP_STRING(--with-bdb-inc-dir, [
Directory for Berkeley include files])],
[ case "$withval" in
no)
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
AC_MSG_ERROR(Need bdb-inc-dir)
fi
;;
yes)
;;
*)
CPPFLAGS="$CPPFLAGS -I$withval"
;;
esac ]
)
ENABLE_VERIFY_CACHE=1
AC_ARG_ENABLE(verify-cache,
[AC_HELP_STRING(--enable-verify-cache, [
Enables the cache in the verify worker.
Required a dbm implemenation.
(default=yes)])],
if test "x$enableval" = xyes; then ENABLE_VERIFY_CACHE=1; fi
if test "x$enableval" = xno; then ENABLE_VERIFY_CACHE=0; fi
)
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
AC_CHECK_LIB([db], [__db_ndbm_open],
@ -129,36 +155,12 @@ fi
AC_DEFINE_UNQUOTED(ENABLE_VERIFY_CACHE, ${ENABLE_VERIFY_CACHE}, [enable verify cache])
verify_BUILD=
AC_ARG_ENABLE(verify-worker,
[AC_HELP_STRING(--enable-verify-worker, [
Enables the sender address verification worker.
(default=no)])],
verify_BUILD=libverify_worker.la
)
test_BUILD=
AC_ARG_ENABLE(test-worker,
[AC_HELP_STRING(--enable-test-worker, [
Enables the test worker (just an example).
(default=no)])],
test_BUILD=libtest_workers.la
)
cyrus_BUILD=
AC_ARG_ENABLE(cyrus-worker,
[AC_HELP_STRING(--enable-cyrus-worker, [
Enables the cyrus mailbox checker.
(default=no)])],
cyrus_BUILD=libcyrus_worker.la
)
AC_SUBST(verify_BUILD)
AC_SUBST(test_BUILD)
AC_SUBST(cyrus_BUILD)
dnl AC_SUBST(verify_BUILD)
dnl AC_SUBST(test_BUILD)
dnl AC_SUBST(cyrus_BUILD)
AC_CONFIG_FILES([Makefile libsmmapdfw/Makefile smmapd/Makefile test_worker/Makefile verify_worker/Makefile cyrus_worker/Makefile])