git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6146b60
)
lib/util/charset: Try to find iconv on HP-UX
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 25 Sep 2012 21:41:38 +0000
(07:41 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 25 Sep 2012 22:24:20 +0000
(
00:24
+0200)
lib/util/charset/wscript_configure
patch
|
blob
|
history
diff --git
a/lib/util/charset/wscript_configure
b/lib/util/charset/wscript_configure
index 98756fee2bba28365874cea76c949460987a853a..dc197c12441d69caff38db943cb256de06c2c4ee 100644
(file)
--- a/
lib/util/charset/wscript_configure
+++ b/
lib/util/charset/wscript_configure
@@
-10,8
+10,11
@@
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)