xref: /PHP-5.3/sapi/apache/config.w32 (revision ba02e9ae)
1// vim:ft=javascript
2// $Id$
3
4ARG_ENABLE('apache', 'Build Apache 1.3.x version of PHP', 'no');
5
6ARG_WITH('apache-includes', 'Where to find Apache 1.3 headers', null);
7ARG_WITH('apache-libs', 'Where to find Apache 1.3 libraries', null);
8
9if (PHP_APACHE != "no") {
10	if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE", php_usual_include_suspects +
11				";" + PROGRAM_FILES + "\\Apache Group\\Apache\\include" +
12				";" + PHP_PHP_BUILD + "\\apache\\src\\include") &&
13			CHECK_LIB("ApacheCore.lib", "apache", php_usual_lib_suspects +
14				';' + PROGRAM_FILES + '\\Apache Group\\Apache\\libexec' +
15				";" + PHP_PHP_BUILD + "\\apache\\src\\corer")) {
16		// We need to play tricks to get our readdir.h used by apache
17		// headers
18		SAPI('apache', 'mod_php5.c sapi_apache.c php_apache.c',
19				'php' + PHP_VERSION + 'apache.dll',
20				'/D APACHEPHP5_EXPORTS /D APACHE_READDIR_H /I win32');
21	} else {
22		WARNING("Could not find apache libraries/headers");
23	}
24}
25