Guenter Radestock <[EMAIL PROTECTED]> writes:

> On Fri, Oct 13, 2000 at 01:50:16PM +0200, Pavel Hlavnicka wrote:
> > 
> > In this time the iconv library is the part of libc.
> > 
> > Proposal:
> > autoconf checks the presence of iconv_open in libc.
> > 
> > If function is not present, autoconf adds -liconv to sabcmd_LDADD.
> > 
> 
> This seems to be the right idea.  As I said before, I unfortunately have
> no idea how to use autoconf to do this (and not enough time to find
> out).  Probably you have to write a little test program at have
> configure try to link it without '-liconv' and see if it works.
> 
> If you want to change the configure, I would be glad to test it on my
> system, though.  Thanks for your help.

AC_CHECK_FUNCS(iconv_open)
if test "$ac_cv_func_iconv_open" != "yes"; then
  AC_CHECK_LIB(iconv, iconv_open)
fi

The above should do the trick. 

-- 
[ Below is a random fortune, which is unrelated to the above message. ]
Famous last words:

Reply via email to