library iconv needs mbrtowc but some system didn't provide it (ie.
HP-UX 11.0)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec 8 23:19:19 CET 2010 on sn-devel-104
if (conf.CHECK_FUNCS_IN('iconv_open', 'iconv', checklibc=False, headers='iconv.h') or
conf.CHECK_FUNCS('iconv_open', headers='iconv.h')):
- conf.DEFINE('HAVE_NATIVE_ICONV', 1)
+ if conf.env['HAVE_LIBICONV']:
+ if conf.CHECK_FUNCS('mbrtowc', headers='wchar.h'):
+ conf.DEFINE('HAVE_NATIVE_ICONV', 1)
+ else:
+ conf.DEFINE('HAVE_NATIVE_ICONV', 1)