summaryrefslogtreecommitdiff
path: root/sapi/apache/config.w32
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-02 23:17:04 +0000
committerWez Furlong <wez@php.net>2003-12-02 23:17:04 +0000
commit05b9b20ed8e2f98b3fb71a227e49e11bdf7b9c6b (patch)
tree70b88eab212d192b86f10a5dedfcedb92785f840 /sapi/apache/config.w32
parent30b631d9f613e1644123e9cea0285ff1f7278b08 (diff)
downloadphp-git-05b9b20ed8e2f98b3fb71a227e49e11bdf7b9c6b.tar.gz
Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
Diffstat (limited to 'sapi/apache/config.w32')
-rw-r--r--sapi/apache/config.w3239
1 files changed, 39 insertions, 0 deletions
diff --git a/sapi/apache/config.w32 b/sapi/apache/config.w32
new file mode 100644
index 0000000000..9842e43028
--- /dev/null
+++ b/sapi/apache/config.w32
@@ -0,0 +1,39 @@
+// vim:ft=javascript
+// $Id$
+
+ARG_ENABLE('apache', 'Build Apache 1.3.x version of PHP', 'yes');
+
+ARG_WITH('apache-includes', 'Where to find Apache 1.3 headers', null);
+ARG_WITH('apache-libs', 'Where to find Apache 1.3 libraries', null);
+
+if (PHP_APACHE_INCLUDES == null) {
+ if (FSO.FileExists('C:\\Program Files\\Apache Group\\Apache\\include\\httpd.h')) {
+ PHP_APACHE_INCLUDES = "C:\\Program Files\\Apache Group\\Apache\\include";
+ } else if (FSO.FileExists(PHP_PHP_BUILD + "\\apache\\src\\include\\httpd.h")) {
+ PHP_APACHE_INCLUDES = PHP_PHP_BUILD + "\\apache\\src\\include";
+ }
+}
+
+if (!FSO.FileExists(PHP_APACHE_INCLUDES + "\\httpd.h")) {
+ ERROR("Could not find apache headers");
+}
+
+if (PHP_APACHE_LIBS == null) {
+ if (FSO.FileExists('C:\\Program Files\\Apache Group\\Apache\\libexec\\ApacheCore.lib')) {
+ PHP_APACHE_LIBS = "C:\\Program Files\\Apache Group\\Apache\\libexec";
+ } else if (FSO.FileExists(PHP_PHP_BUILD + "\\apache\\src\\corer\\ApacheCore.lib")) {
+ PHP_APACHE_LIBS = PHP_PHP_BUILD + "\\apache\\src\\corer";
+ }
+}
+
+if (!FSO.FileExists(PHP_APACHE_LIBS + "\\ApacheCore.lib")) {
+ ERROR("Could not find apache libraries");
+}
+
+
+if (PHP_APACHE == "yes") {
+ SAPI('apache', 'mod_php5.c sapi_apache.c php_apache.c',
+ 'php' + PHP_VERSION + 'apache.dll',
+ '/D APACHEPHP4_EXPORTS /D APACHE_READDIR_H /I "' + PHP_APACHE_INCLUDES + '"');
+ ADD_FLAG('LIBS_APACHE', '/libpath:"' + PHP_APACHE_LIBS + '" ApacheCore.lib');
+}