summaryrefslogtreecommitdiff
path: root/ext/ftp/config.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-10-09 20:39:42 +0000
committerfoobar <sniper@php.net>2005-10-09 20:39:42 +0000
commite403b15ebbb27956390d1ee711b3ccf282370f01 (patch)
tree94353af5d7127e9fb2b2b5b29e8ce6a4c04b4c39 /ext/ftp/config.m4
parent412a28d1243d02f86a2b92fa8b7b68d6e0aa197f (diff)
downloadphp-git-e403b15ebbb27956390d1ee711b3ccf282370f01.tar.gz
MFH: - Fixed bug #34796 (missing SSL linking in ext/ftp when configured as shared).
Diffstat (limited to 'ext/ftp/config.m4')
-rw-r--r--ext/ftp/config.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ftp/config.m4 b/ext/ftp/config.m4
index 3b5f3fd641..0d389c7f38 100644
--- a/ext/ftp/config.m4
+++ b/ext/ftp/config.m4
@@ -5,7 +5,15 @@ dnl
PHP_ARG_ENABLE(ftp,whether to enable FTP support,
[ --enable-ftp Enable FTP support])
+PHP_ARG_WITH(openssl-dir,OpenSSL dir for SNMP,
+[ --with-openssl-dir[=DIR] SNMP: openssl install prefix], no, no)
+
if test "$PHP_FTP" = "yes"; then
AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support])
PHP_NEW_EXTENSION(ftp, php_ftp.c ftp.c, $ext_shared)
+
+ if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
+ PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD)
+ PHP_SUBST(FTP_SHARED_LIBADD)
+ fi
fi