diff options
Diffstat (limited to 'ext/ftp/config.w32')
-rw-r--r-- | ext/ftp/config.w32 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/ftp/config.w32 b/ext/ftp/config.w32 index c91e350a86..b181a0b95a 100644 --- a/ext/ftp/config.w32 +++ b/ext/ftp/config.w32 @@ -4,6 +4,16 @@ ARG_ENABLE("ftp", "ftp support", "yes"); if (PHP_FTP == "yes") { + EXTENSION("ftp", "php_ftp.c ftp.c"); + + if (CHECK_HEADER_ADD_INCLUDE("openssl/ssl.h", "CFLAGS_FTP") && + CHECK_LIB("ssleay32.lib", "ftp", PHP_FTP) && + CHECK_LIB("libeay32.lib", "ftp", PHP_FTP) && + ADD_EXTENSION_DEP("ftp", "openssl", true)) { + MESSAGE("Enabling SSL support for ext\\ftp"); + AC_DEFINE('HAVE_FTP_SSL', 1, 'Have FTP over SSL support'); + } + AC_DEFINE('HAVE_FTP', 1, 'Have FTP support'); } |