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