From: foobar Date: Tue, 10 Dec 2002 16:34:48 +0000 (+0000) Subject: MFH: added the version check X-Git-Tag: php-4.3.0RC3~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fbd4431f966bf7f42e2ee926428ebe49989592c;p=php MFH: added the version check --- 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 +#include ], [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)