summaryrefslogtreecommitdiff
path: root/ext/cyrus
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-12-10 16:34:20 +0000
committerfoobar <sniper@php.net>2002-12-10 16:34:20 +0000
commit8416a0433a1fb341c4181e1246b5b41e796ebbf6 (patch)
treefe5128ea3cf6b7180b1641df6cfc9c19890bf260 /ext/cyrus
parent3c9a6a889008bd6bb5c947d537c4da3c36b0379a (diff)
downloadphp-git-8416a0433a1fb341c4181e1246b5b41e796ebbf6.tar.gz
This extension requires cyrus-imap >= 2.0.8
Diffstat (limited to 'ext/cyrus')
-rw-r--r--ext/cyrus/config.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/cyrus/config.m4 b/ext/cyrus/config.m4
index 78af2f8272..340514911c 100644
--- a/ext/cyrus/config.m4
+++ b/ext/cyrus/config.m4
@@ -18,10 +18,20 @@ if test "$PHP_CYRUS" != "no"; then
PHP_ADD_INCLUDE($i/include)
PHP_ADD_LIBRARY_WITH_PATH(cyrus, $i/lib, CYRUS_SHARED_LIBADD)
found_cyrus=yes
+ CYRUS_INCPATH=$i/include
break 2
fi
done
+ dnl Check that imclient_connect() accepts 4 args
+ old_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS=-I$CYRUS_INCPATH
+ AC_TRY_COMPILE([#include <stdio.h>
+#include <cyrus/imclient.h>], [imclient_connect(0,0,0,0)], [], [
+ AC_MSG_ERROR(cyrus-imap version 2.0.8 or greater required)
+ ])
+ CPPFLAGS=$old_CPPFLAGS
+
if test "$found_cyrus" = "no"; then
AC_MSG_RESULT(not found)
AC_MSG_ERROR(Please Re-install the cyrus distribution)