Annotation of embedaddon/php/ext/phar/config.w32, revision 1.1.1.2

1.1.1.2 ! misho       1: // $Id$
1.1       misho       2: // vim:ft=javascript
                      3: 
                      4: ARG_ENABLE("phar", "disable phar support", "yes");
                      5: ARG_ENABLE("phar-native-ssl", "enable phar with native OpenSSL support", "no");
                      6: 
                      7: if (PHP_PHAR_NATIVE_SSL != "no") {
                      8:        PHP_PHAR = PHP_PHAR_NATIVE_SSL;
                      9: }
                     10: 
                     11: if (PHP_PHAR != "no") {
                     12:        EXTENSION("phar", "dirstream.c func_interceptors.c phar.c phar_object.c phar_path_check.c stream.c tar.c util.c zip.c");
                     13:        if (PHP_PHAR_SHARED || (PHP_PHAR_NATIVE_SSL_SHARED && PHP_SNAPSHOT_BUILD == "no")) {
                     14:                ADD_FLAG("CFLAGS_PHAR", "/D COMPILE_DL_PHAR ");
                     15:        }
                     16:        if (PHP_PHAR_NATIVE_SSL != "no") {
                     17:                if (CHECK_LIB("libeay32st.lib", "phar")) {
                     18:                        /* We don't really need GDI for this, but there's no
                     19:                        way to avoid linking it in the static openssl build */
                     20:                        ADD_FLAG("LIBS_PHAR", "libeay32st.lib gdi32.lib");
                     21:                        if (PHP_DEBUG == "no") {
                     22:                                /* Silence irrelevant-to-us warning in release builds */
                     23:                                ADD_FLAG("LDFLAGS_PHAR", "/IGNORE:4089 ");
                     24:                        }
                     25:                        AC_DEFINE('PHAR_HAVE_OPENSSL', 1);
                     26:                        STDOUT.WriteLine('        Native OpenSSL support in Phar enabled');
                     27:                } else {
                     28:                        WARNING('Could not enable native OpenSSL support in Phar');
                     29:                }
                     30:        } else {
                     31:                if (PHP_OPENSSL != "no" && !PHP_OPENSSL_SHARED && !PHP_PHAR_SHARED) {
                     32:                        AC_DEFINE('PHAR_HAVE_OPENSSL', 1);
                     33:                        STDOUT.WriteLine('        Native OpenSSL support in Phar enabled');
                     34:                } else {
                     35:                        STDOUT.WriteLine('        Native OpenSSL support in Phar disabled');
                     36:                }
                     37:        }
                     38:        if (PHP_HASH != "no") {
                     39:                if (!PHP_HASH_SHARED) {
                     40:                        AC_DEFINE("PHAR_HASH_OK", 1);
                     41:                } else {
                     42:                        WARNING('Phar: sha256/sha512 signature support disabled if ext/hash is built shared');
                     43:                }
                     44:        }
                     45:        ADD_EXTENSION_DEP('phar', 'spl', true);
                     46: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>