This commit was manufactured by cvs2svn to create branch 'gtk2'.
[claws.git] / ac / spamassassin.m4
index 2c196fccff9ed5a93e2b3e07affc964c6e17ba95..036203cc974ced819394a9d7deb16ad62bef84ed 100644 (file)
@@ -1,10 +1,11 @@
 dnl check for libspamc required includes
 
 dnl check for libspamc required includes
 
-AC_DEFUN(AC_SPAMASSASSIN,
+AC_DEFUN([AC_SPAMASSASSIN],
 [dnl
 
 AC_CHECK_HEADERS(sys/time.h syslog.h unistd.h errno.h sys/errno.h)
 AC_CHECK_HEADERS(time.h sysexits.h sys/socket.h netdb.h netinet/in.h)
 [dnl
 
 AC_CHECK_HEADERS(sys/time.h syslog.h unistd.h errno.h sys/errno.h)
 AC_CHECK_HEADERS(time.h sysexits.h sys/socket.h netdb.h netinet/in.h)
+AC_CHECK_HEADERS(openssl/crypto.h)
 
 AC_CACHE_CHECK([for SHUT_RD],
        shutrd, [
 
 AC_CACHE_CHECK([for SHUT_RD],
        shutrd, [
@@ -20,11 +21,6 @@ fi
 
 dnl ----------------------------------------------------------------------
 
 
 dnl ----------------------------------------------------------------------
 
-AC_CHECK_LIB(socket, socket)
-AC_CHECK_LIB(inet, connect)
-AC_CHECK_LIB(nsl, t_accept)
-AC_CHECK_LIB(dl, dlopen)
-
 AC_CHECK_FUNCS(socket strdup strtod strtol snprintf shutdown)
 
 dnl ----------------------------------------------------------------------
 AC_CHECK_FUNCS(socket strdup strtod strtol snprintf shutdown)
 
 dnl ----------------------------------------------------------------------
@@ -86,4 +82,8 @@ if test $haveexmax = yes ; then
   AC_DEFINE(HAVE_EX__MAX, 1, HAVE_EX__MAX)
 fi
 
   AC_DEFINE(HAVE_EX__MAX, 1, HAVE_EX__MAX)
 fi
 
-])
\ No newline at end of file
+if test "$USE_OPENSSL" -ne 0; then
+    AC_DEFINE(SPAMC_SSL, 1, Compile libspamc with OpenSSL support)
+fi
+
+])