diff options
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index 01d20d4848..9bbedeae79 100644 --- a/source3/wscript +++ b/source3/wscript @@ -49,6 +49,7 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('utmp') opt.SAMBA3_ADD_OPTION('pthreadpool', with_name="enable", without_name="disable") opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable") + opt.SAMBA3_ADD_OPTION('iconv') def configure(conf): @@ -578,6 +579,13 @@ return 0; conf.SET_TARGET_TYPE('avahi-common', 'EMPTY') conf.SET_TARGET_TYPE('avahi-client', 'EMPTY') + if Options.options.with_iconv: + conf.env.with_iconv = True + if not conf.CHECK_FUNCS_IN('iconv_open', 'iconv', headers='iconv.h'): + conf.env.with_iconv = False + if conf.env.with_iconv: + conf.DEFINE('HAVE_ICONV', 1) + # FIXME: these should be tests for features, but the old build system just # checks for OSes. import sys |