lib/util/charset: Try to find iconv on HP-UX
authorAndrew Bartlett <abartlet@samba.org>
Tue, 25 Sep 2012 21:41:38 +0000 (07:41 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 25 Sep 2012 22:24:20 +0000 (00:24 +0200)
lib/util/charset/wscript_configure

index 98756fee2bba28365874cea76c949460987a853a..dc197c12441d69caff38db943cb256de06c2c4ee 100644 (file)
 
 conf.CHECK_LIB(libs="iconv", shlib=True)
 
+#HP-UX can use libiconv as an add-on package, which has #define iconv_open libiconv_open
 if (conf.CHECK_FUNCS_IN('iconv_open', 'iconv', checklibc=False, headers='iconv.h') or
+    conf.CHECK_FUNCS_IN('libiconv_open', 'iconv', checklibc=False, headers='iconv.h') or 
     conf.CHECK_FUNCS('iconv_open', headers='iconv.h')):
+    
     if conf.env['HAVE_LIBICONV']:
         if conf.CHECK_FUNCS('mbrtowc', headers='wchar.h'):
             conf.DEFINE('HAVE_NATIVE_ICONV', 1)