config.w32 1.6 KB

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