diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-23 19:05:20 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-24 23:10:57 -0500 |
commit | 45e936174e39637c09cd10c0a5c6f8752ee2d709 (patch) | |
tree | 1ac68c1e8f13063578f75c70263f2caa84efceab /Clock.c | |
parent | 27e10658010d314b40dfc9403a92864b26a9d576 (diff) |
Use AM_ICONV
AC_SEARCH_LIBS does not detect GNU libiconv because its symbols are
exported in the "libiconv" namespace instead of "iconv". The AM_ICONV
macro correctly detects both glibc and GNU libiconv, defines HAVE_ICONV,
ICONV_CONST, and LIBICONV depending on the system. The config.rpath
file is required by this macro.
This adds a dependency on the aclocal macros from gettext (gettext-devel
in some distros) when building from git, but not when building from a
tarball.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'Clock.c')
-rw-r--r-- | Clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2214,7 +2214,7 @@ clock_to_utf8(const char *str, int in_len) char *buf; size_t buf_size; size_t ileft, oleft; - const char *inptr; + ICONV_CONST char *inptr; char *outptr; size_t ret; const char *code_set = nl_langinfo(CODESET); |