summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/charset/wscript_configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/util/charset/wscript_configure b/lib/util/charset/wscript_configure
new file mode 100644
index 0000000000..f076bc0680
--- /dev/null
+++ b/lib/util/charset/wscript_configure
@@ -0,0 +1,10 @@
+conf.CHECK_HEADERS('iconv.h')
+
+conf.CHECK_FUNCS_IN('iconv_open', 'iconv')
+
+conf.CHECK_CODE('''
+ iconv_t cd = iconv_open("ASCII","UCS-2LE");
+ if (cd == 0 || cd == (iconv_t)-1) return -1;
+ ''',
+ define='HAVE_NATIVE_ICONV')
+