mirror of
https://github.com/php/php-src.git
synced 2025-01-09 20:44:33 +08:00
359a78b16c
Used in php-src the past and today removed and not used anymore: - HAVE_CURL_EASY_STRERROR - HAVE_CURL_MULTI_STRERROR - HAVE_NEW_MIME2TEXT - HAVE_MBSTR_CN - HAVE_MBSTR_JA - HAVE_MBSTR_KR - HAVE_MBSTR_RU - HAVE_MBSTR_TW Part of oniguruma which doesn't use these anymore - NOT_RUBY - HAVE_STDARG_PROTOTYPES Unused: - HAVE_MPIR Closes GH-4427
27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("imap", "IMAP Support", "no");
|
|
|
|
if (PHP_IMAP == "yes") {
|
|
if (CHECK_LIB("cclient_a.lib;cclient.lib", "imap") &&
|
|
(CHECK_HEADER_ADD_INCLUDE("c-client.h", "CFLAGS_IMAP")||
|
|
CHECK_HEADER_ADD_INCLUDE("c-client/c-client.h", "CFLAGS_IMAP", null, null, true)) ||
|
|
(CHECK_HEADER_ADD_INCLUDE("utf8aux.h", "CFLAGS_IMAP")||
|
|
CHECK_HEADER_ADD_INCLUDE("c-client/utf8aux.h", "CFLAGS_IMAP", null, null, true))
|
|
) {
|
|
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", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
|
|
|
ADD_FLAG("CFLAGS_IMAP", "/D HAVE_IMAP2000=1 /D HAVE_IMAP2004=1 /D HAVE_IMAP2007a=1 /D HAVE_IMAP2007b=1 /D HAVE_IMAP_SSL=1");
|
|
AC_DEFINE('HAVE_IMAP', 1, 'Have IMAP support', true);
|
|
AC_DEFINE('HAVE_RFC822_OUTPUT_ADDRESS_LIST', 1, 'Have rfc822_output_address_list', true);
|
|
AC_DEFINE('HAVE_IMAP_MUTF7', 1, 'Have modified utf7 support', true);
|
|
AC_DEFINE('HAVE_NEW_MIME2TEXT', 1, 'Whether utf8_mime2text() has new signature');
|
|
} else {
|
|
WARNING("imap not enabled; libraries and headers not found");
|
|
}
|
|
}
|