]> granicus.if.org Git - php/commitdiff
openssl support for the new build
authorWez Furlong <wez@php.net>
Fri, 5 Dec 2003 23:13:30 +0000 (23:13 +0000)
committerWez Furlong <wez@php.net>
Fri, 5 Dec 2003 23:13:30 +0000 (23:13 +0000)
ext/openssl/config.w32 [new file with mode: 0644]

diff --git a/ext/openssl/config.w32 b/ext/openssl/config.w32
new file mode 100644 (file)
index 0000000..98dc852
--- /dev/null
@@ -0,0 +1,17 @@
+// $Id$
+// vim:ft=javascript
+
+ARG_WITH("openssl", "OpenSSL support", "no");
+
+if (PHP_OPENSSL != "no") {
+       if (CHECK_LIB("ssleay32.lib", "openssl", PHP_OPENSSL) &&
+                       CHECK_LIB("libeay32.lib", "openssl", PHP_OPENSSL) &&
+                       CHECK_HEADER_ADD_INCLUDE("openssl/ssl.h", "CFLAGS_OPENSSL")) {
+               EXTENSION("openssl", "openssl.c xp_ssl.c");
+
+               AC_DEFINE("HAVE_OPENSSL_EXT", PHP_OPENSSL_SHARED ? 0 : 1, "Have openssl");
+               AC_DEFINE("HAVE_OPENSSL", 1);
+       }
+}
+
+