config.w32 988 B

123456789101112131415161718192021222324252627
  1. // vim:ft=javascript
  2. ARG_WITH("enchant", "Enchant Support", "no");
  3. if (PHP_ENCHANT == "yes") {
  4. if (CHECK_HEADER_ADD_INCLUDE("enchant.h", "CFLAGS_ENCHANT", PHP_ENCHANT+ ";" + PHP_PHP_BUILD + "\\include\\enchant") &&
  5. CHECK_HEADER_ADD_INCLUDE("glib.h", "CFLAGS_ENCHANT", PHP_ENCHANT+ ";" + PHP_PHP_BUILD + "\\include\\glib-2.0")) {
  6. if (CHECK_LIB("libenchant2.lib", "enchant", PHP_ENCHANT)) {
  7. have_enchant = true;
  8. AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 0);
  9. } else if (CHECK_LIB("libenchant.lib", "enchant", PHP_ENCHANT)) {
  10. have_enchant = true;
  11. AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 1);
  12. } else {
  13. have_enchant = false;
  14. WARNING('Could not find libenchant.lib; skipping');
  15. }
  16. if (have_enchant) {
  17. EXTENSION("enchant", "enchant.c");
  18. AC_DEFINE('HAVE_ENCHANT', 1, 'Have Enchant support', false);
  19. AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1);
  20. ADD_FLAG("CFLAG_ENCHANT", "/D _WIN32");
  21. }
  22. } else {
  23. WARNING('Could not find enchant.h; skipping');
  24. }
  25. }