config.w32 951 B

123456789101112131415161718192021222324
  1. // vim:ft=javascript
  2. // $Id$
  3. ARG_ENABLE('apache', 'Build Apache 1.3.x version of PHP', 'no');
  4. ARG_WITH('apache-includes', 'Where to find Apache 1.3 headers', null);
  5. ARG_WITH('apache-libs', 'Where to find Apache 1.3 libraries', null);
  6. if (PHP_APACHE != "no") {
  7. if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE", php_usual_include_suspects +
  8. ";" + PROGRAM_FILES + "\\Apache Group\\Apache\\include" +
  9. ";" + PHP_PHP_BUILD + "\\apache\\src\\include") &&
  10. CHECK_LIB("ApacheCore.lib", "apache", 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', 'mod_php5.c sapi_apache.c php_apache.c',
  16. 'php' + PHP_VERSION + 'apache.dll',
  17. '/D APACHEPHP5_EXPORTS /D APACHE_READDIR_H /I win32');
  18. } else {
  19. WARNING("Could not find apache libraries/headers");
  20. }
  21. }