iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 19:03:04 +0000 (21:03 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:10 +0000 (00:06 +0200)
commit8641eee947d9d502e868d0f2239df987e08dda15
treec1c2163de4e400d73e08de580a1521f0e54db491
parenta99c0f83b06bee0d89e1a409fe2759207b7cf480
iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.

If module 'iconv_open' is among the main modules and module
'iconv_open-utf' is among the tests dependencies, then
REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
return the special iconv_t values. Therefore iconv() and iconv_close()
must support these special iconv_t values, already in lib, not only in
tests.
* m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
* m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
(gl_FUNC_ICONV_OPEN_UTF): Remove macro.
* modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
(Depends-on): Add the dependencies of iconv_open-utf.
* modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
(Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
ChangeLog
m4/iconv_open-utf.m4 [new file with mode: 0644]
m4/iconv_open.m4
modules/iconv_open
modules/iconv_open-utf