[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] link againt iconv on bsd

From: Albert Chin <subversion-dev_at_thewrittenword.com>
Date: 2002-07-21 07:20:02 CEST

On Sat, Jul 20, 2002 at 12:29:46AM +0200, Branko Cibej wrote:
> Probably should check for the libc iconv first, and have_iconv must
> always have a value; so tis would become:
>
> AC_CHECK_FUNCS(iconv, [ have_iconv="1" ], [
> AC_CHECK_LIB(iconv, iconv, [
> APR_ADDTO(APRUTIL_EXPORT_LIBS,[-liconv])
> APR_ADDTO(APRUTIL_LIBS,[-liconv])
> have_iconv="1"
> ],
> [ have_iconv="0" ]
> ])

This won't work with GNU libiconv. Pull down the source for libxml and
look at how they do it then steal it. Don't assume that "iconv" is the
name of a valid function in -liconv. #include <iconv.h> first to
handle redefinitions of iconv.

From libiconv 1.8 build on Solaris 7:
  $ nm libiconv.so | grep iconv
  ...
  [801] | 131348| 56|FUNC |GLOB |0 |8 |libiconv
  [811] | 131420| 20|FUNC |GLOB |0 |8 |libiconv_close
  [803] | 130096| 1252|FUNC |GLOB |0 |8 |libiconv_open
  [828] | 131456| 308|FUNC |GLOB |0 |8 |libiconvctl
  [817] | 131940| 404|FUNC |GLOB |0 |8 |libiconvlist

From <iconv.h>
  ...
  #ifndef LIBICONV_PLUG
  #define iconv libiconv
  #endif
  ...

-- 
albert chin (china@thewrittenword.com)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 21 07:20:41 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.