]> granicus.if.org Git - php/commitdiff
fix windows build when building phar shared with native-ssl disabled (you can't use...
authorGreg Beaver <cellog@php.net>
Mon, 18 Aug 2008 14:58:03 +0000 (14:58 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 18 Aug 2008 14:58:03 +0000 (14:58 +0000)
ext/phar/config.w32

index c57c924faeb66a695b01f2b163bc3e65a162795a..9894c95b29a7cefc6c9e1942c5c3b68b0265115b 100644 (file)
@@ -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);