claws-mail/m4/spamassassin.m4
Paul Mangan d04ac7fcb7 2004-10-12 [paul] 0.9.12cvs124.1
* ChangeLog.claws
	* configure.ac
	* m4/spamassassin.m4
	* src/Makefile.am
	* src/account.c
	* src/compose.c
	* src/compose.h
	* src/crash.c
	* src/main.c
	* src/mimeview.c
	* src/passphrase.c
	* src/passphrase.h
	* src/prefs_account.c
	* src/prefs_account.h
	* src/prefs_common.c
	* src/privacy.c
	* src/privacy.h
	* src/procmime.c
	* src/procmime.h
	* src/procmsg.c
	* src/rfc2015.c
	* src/rfc2015.h
	* src/select-keys.c
	* src/select-keys.h
	* src/textview.c
	* src/common/utils.c
	* src/common/utils.h
	* src/gtk/about.c
	* src/plugins/pgpmime/Makefile.am
	* src/plugins/pgpmime/passphrase.c
	* src/plugins/pgpmime/passphrase.h
	* src/plugins/pgpmime/pgpmime.c
	* src/plugins/pgpmime/plugin.c
	* src/plugins/pgpmime/select-keys.c
	* src/plugins/pgpmime/select-keys.h
	* src/plugins/pgpmime/sgpgme.c
	* src/plugins/pgpmime/sgpgme.h
		sync with HEAD
2004-10-12 09:45:18 +00:00

89 lines
2.8 KiB
Text

dnl check for libspamc required includes
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)
AC_CHECK_HEADERS(openssl/crypto.h)
AC_CACHE_CHECK([for SHUT_RD],
shutrd, [
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/socket.h>],
[printf ("%d", SHUT_RD); return 0;],
[shutrd=yes],
[shutrd=no]),
])
if test $shutrd = yes ; then
AC_DEFINE(HAVE_SHUT_RD, 1, HAVE_SHUT_RD)
fi
dnl ----------------------------------------------------------------------
AC_CHECK_FUNCS(socket strdup strtod strtol snprintf shutdown)
dnl ----------------------------------------------------------------------
AC_CACHE_CHECK([for h_errno],
herrno, [
AC_TRY_COMPILE([#include <netdb.h>],
[printf ("%d", h_errno); return 0;],
[herrno=yes],
[herrno=no]),
])
if test $herrno = yes ; then
AC_DEFINE(HAVE_H_ERRNO, 1, HAVE_H_ERRNO)
fi
dnl ----------------------------------------------------------------------
dnl ----------------------------------------------------------------------
AC_CACHE_CHECK([for in_addr_t],
inaddrt, [
AC_TRY_COMPILE([#include <sys/types.h>
#include <netinet/in.h>],
[in_addr_t foo; return 0;],
[inaddrt=yes],
[inaddrt=no]),
])
if test $inaddrt = no ; then
AC_CHECK_TYPE(in_addr_t, unsigned long)
fi
dnl ----------------------------------------------------------------------
AC_CACHE_CHECK([for INADDR_NONE],
haveinaddrnone, [
AC_TRY_COMPILE([#include <sys/types.h>
#include <netinet/in.h>],
[in_addr_t foo = INADDR_NONE; return 0;],
[haveinaddrnone=yes],
[haveinaddrnone=no]),
])
if test $haveinaddrnone = yes ; then
AC_DEFINE(HAVE_INADDR_NONE, 1, HAVE_INADDR_NONE)
fi
dnl ----------------------------------------------------------------------
AC_CACHE_CHECK([for EX__MAX],
haveexmax, [
AC_TRY_COMPILE([#ifdef HAVE_SYSEXITS_H
#include <sysexits.h>
#endif
#include <errno.h>],
[int foo = EX__MAX; return 0;],
[haveexmax=yes],
[haveexmax=no]),
])
if test $haveexmax = yes ; then
AC_DEFINE(HAVE_EX__MAX, 1, HAVE_EX__MAX)
fi
if test x$ac_cv_enable_openssl = xyes; then
AC_DEFINE(SPAMC_SSL, 1, Compile libspamc with OpenSSL support)
fi
])