[kaffe] libiconv cannot be automattically linked

Ito Kazumitsu ito.kazumitsu@hitachi-cable.co.jp
Wed, 9 Oct 2002 19:47:12 +0900


In message "[kaffe] libiconv cannot be automattically linked"
    on 02/10/09, Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> writes:

> In message "kaffe.io.ByteToCharIconv makes wrong results"
>     on 01/09/03, Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> writes:
> 
> > I use kaffe-snap-20010819.  In my environment, libiconv was not
> > automatically taken into kaffe,  so I did the following:
> > Afer ./configure, I edited config/config.h to add "#define HAVE_ICONV 1"
> > and edited libraries/clib/native/Makefile to add "-liconv" to LIBS.
> 
> The situation remains the same, and I still have to manually
> edit config/config.h and libraries/clib/native/Makefile.

This is what I did to make configure treat libiconv properly.

1. Append libiconv's extras/iconv.m4 to kaffe's aclocal.m4

    $ cat $LIBICONV/extras/iconv.m4 >> aclocal.m4

2. Modify configure.in

--- configure.in.orig	Sat Jun 29 10:05:15 2002
+++ configure.in	Wed Oct  9 19:24:41 2002
@@ -931,8 +931,10 @@
 mkdir dnl
 getcwd chdir getwd gettimeofday ftime time uname getuid dnl
 localtime dnl
-iconv dnl
 ])
+
+AM_ICONV
+LIBS="$LIBS $LIBICONV"
 
 KSAVE_LIBS="$LIBS"
 LIBS="$M_LIBS $LIBS"

3. autoconf