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