summaryrefslogtreecommitdiff
path: root/lib/util/charset/wscript_configure
blob: 4dbb46d0fb2b1685ba5a9275fa4415b74ed40ce5 (plain)
1
2
3
4
5
6
7
8
9
10
conf.CHECK_HEADERS('iconv.h')

conf.CHECK_FUNCS_IN('iconv_open', 'iconv', checklibc=True)

conf.CHECK_CODE('''
                   iconv_t cd = iconv_open("ASCII","UCS-2LE");
                   if (cd == 0 || cd == (iconv_t)-1) return -1;
                ''',
                define='HAVE_NATIVE_ICONV')