Adding config file for win32. This allows to build with c-client 2002e

This commit is contained in:
Frank M. Kromann 2003-12-08 22:15:20 +00:00
parent 819b2e56f9
commit 34a596b051
2 changed files with 28 additions and 0 deletions

24
ext/imap/config.w32 Normal file
View File

@ -0,0 +1,24 @@
// $Id$
// vim:ft=javascript
ARG_WITH("imap", "IMAP Support", "no");
if (PHP_IMAP == "yes") {
if (CHECK_LIB("cclient.lib", "imap") &&
CHECK_HEADER_ADD_INCLUDE("rfc822.h", "CFLAGS_IMAP")) {
CHECK_LIB("winmm.lib", "imap");
CHECK_LIB("ws2_32.lib", "imap");
CHECK_LIB("Secur32.lib", "imap");
CHECK_LIB("crypt32.lib", "imap");
EXTENSION("imap", "php_imap.c");
ADD_FLAG("CFLAGS_IMAP", "/D HAVE_IMAP2000=1");
ADD_FLAG("LDFLAGS_IMAP", "/nodefaultlib:LIBCMT");
AC_DEFINE('HAVE_IMAP', 1, 'Have IMAP support', true);
if (!PHP_IMAP_SHARED) {
ADD_DEF_FILE("ext\\imap\\php_imap.def");
}
} else {
WARNING("imap not enabled; libraries and headers not found");
}
}

4
ext/imap/php_imap.def Normal file
View File

@ -0,0 +1,4 @@
EXPORTS
_pctype
__mb_cur_max
_daylight