summaryrefslogtreecommitdiff
path: root/lib/util/charset/wscript_configure
blob: f076bc0680e57bf18a04afa568e5dc362e19674e (plain)
1
2
3
4
5
6
7
8
9
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')