]> Pileus Git - ~andy/fetchmail/blobdiff - configure.ac
Merge commit 'refs/merge-requests/1' of gitorious.org:fetchmail/fetchmail into integr...
[~andy/fetchmail] / configure.ac
index 73aeece781da8aac5fce2a34820f74dd72df0334..0b0121c31fb4a912f36ed40477d1bd2d14d24e3f 100644 (file)
@@ -186,6 +186,22 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>
 
 AC_DEFINE_UNQUOTED(PID_DIR, "/var/run", directory for PID lock files)
 
+AC_ARG_ENABLE(pwmd,
+       [  --enable-pwmd           enable Password Manager Daemon support],
+       , [enable_pwmd=no])
+
+if test "$enable_pwmd" = "yes"; then
+    PKG_CHECK_EXISTS([libpwmd], have_libpwmd=1,
+                    AC_MSG_ERROR([Could not find libpwmd pkg-config module.]))
+
+
+    PKG_CHECK_MODULES([libpwmd], [libpwmd >= 6.0.0])
+    AM_CONDITIONAL(HAVE_LIBPWMD, true)
+    AC_DEFINE(HAVE_LIBPWMD, 1, [Define if you have libPWMD installed.])
+else
+    AM_CONDITIONAL(HAVE_LIBPWMD, false)
+fi
+
 # We may have a fallback MDA available in case the socket open to the 
 # local SMTP listener fails.  Best to use procmail for this, as we know
 # it won't try delivering through local SMTP and cause a mail loop.