diff options
-rw-r--r-- | lib/util/charset/wscript_configure | 10 | ||||
-rw-r--r-- | source4/wscript | 1 |
2 files changed, 11 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') + diff --git a/source4/wscript b/source4/wscript index 38bf29c99a..25a64c89d9 100644 --- a/source4/wscript +++ b/source4/wscript @@ -28,6 +28,7 @@ def configure(conf): conf.sub_config('ntvfs/sysdep') conf.sub_config('../lib/util') conf.sub_config('../lib/zlib') + conf.sub_config('../lib/util/charset') conf.sub_config('auth') conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1) |