config.w32 852 B

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