summaryrefslogtreecommitdiff
path: root/ext/enchant/config.w32
diff options
context:
space:
mode:
Diffstat (limited to 'ext/enchant/config.w32')
-rw-r--r--ext/enchant/config.w3217
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/enchant/config.w32 b/ext/enchant/config.w32
new file mode 100644
index 0000000..3e4c357
--- /dev/null
+++ b/ext/enchant/config.w32
@@ -0,0 +1,17 @@
+// $Id$
+// vim:ft=javascript
+
+ARG_WITH("enchant", "Enchant Support", "no");
+
+if (PHP_ENCHANT == "yes") {
+ if (CHECK_HEADER_ADD_INCLUDE("enchant.h", "CFLAGS_ENCHANT", PHP_ENCHANT+ ";" + PHP_PHP_BUILD + "\\include\\enchant") &&
+ CHECK_HEADER_ADD_INCLUDE("glib.h", "CFLAGS_ENCHANT", PHP_ENCHANT+ ";" + PHP_PHP_BUILD + "\\include\\glib-2.0") &&
+ CHECK_LIB("libenchant.lib", "enchant", PHP_ENCHANT) ) {
+ EXTENSION("enchant", "enchant.c");
+ AC_DEFINE('HAVE_ENCHANT', 1, 'Have Enchant support', false);
+ AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 1);
+ ADD_FLAG("CFLAG_ENCHANT", "/D _WIN32");
+ } else {
+ WARNING('Could not find enchant.h; skipping');
+ }
+}