Browse Source

fix windows build when building phar shared with native-ssl disabled (you can't use the symbols directly if openssl is built shared or is not built at all)

PECL
Greg Beaver 18 years ago
parent
commit
cfca5be40f
  1. 6
      ext/phar/config.w32

6
ext/phar/config.w32

@ -29,9 +29,11 @@ if (PHP_PHAR != "no") {
WARNING('Could not enable native OpenSSL support in Phar');
}
} else {
/* If ext/openssl is built-in we can at least use the API directly */
if (PHP_OPENSSL != "no" && !PHP_OPENSSL_SHARED) {
if (PHP_OPENSSL != "no" && !PHP_OPENSSL_SHARED && !PHP_PHAR_SHARED) {
AC_DEFINE('PHAR_HAVE_OPENSSL', 1);
STDOUT.WriteLine(' Native OpenSSL support in Phar enabled');
} else {
STDOUT.WriteLine(' Native OpenSSL support in Phar disabled');
}
}
ADD_EXTENSION_DEP('phar', 'spl', true);

Loading…
Cancel
Save