From: Bruno Haible Date: Mon, 5 Mar 2001 15:00:14 +0000 (+0000) Subject: Add -liconv where needed on platforms which have iconv() outside libc. X-Git-Tag: v0.10.36~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be5ef702e8bf46f0cf173dba6b4f330f25ad3203;p=thirdparty%2Fgettext.git Add -liconv where needed on platforms which have iconv() outside libc. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 19d470537..2f52ef68d 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2001-03-03 Bruno Haible + + * gettext.m4 (AM_WITH_NLS): Add $LIBICONV to $INTLLIBS. + 2001-02-07 Pavel Roskin * c-bs-a.m4: Quote first argument of AC_DEFUN. diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 73c432e6d..ab3f0fe0b 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -129,6 +129,12 @@ return (int) gettext ("") + _nl_msg_cat_cntr], LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi + dnl If iconv() is in a separate libiconv library, then anyone linking + dnl with libintl{.a,.so} also needs to link with libiconv. + if test -n "$LIBICONV" && test -n "$INTLLIBS"; then + INTLLIBS="$INTLLIBS $LIBICONV" + fi + dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the diff --git a/tests/ChangeLog b/tests/ChangeLog index 570316fe7..b618b988f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2001-03-03 Bruno Haible + + * Makefile.am (LDADD): Add @LIBICONV@. Needed on platforms where + iconv() is not in libc. + 2001-01-21 Bruno Haible Use libtool. diff --git a/tests/Makefile.am b/tests/Makefile.am index b01247ef5..da5791405 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -46,7 +46,7 @@ xg-test1.ok.po: $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c \ # Two auxiliary programs used by the tests. INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/intl DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ -LDADD = ../intl/libintl.la +LDADD = ../intl/libintl.la @LIBICONV@ EXTRA_PROGRAMS = tstgettext cake tstgettext_SOURCES = tstgettext.c setlocale.c tstgettext_LDADD = ../lib/libnlsut.a $(LDADD)