Provisory remedy for missing compile option -liconv

with GNU libiconv on FreeBSD.
This commit is contained in:
2009-06-30 13:41:34 +02:00
parent 0e14549521
commit e52b5e7f2a
3 changed files with 10 additions and 3 deletions

View File

@ -87,7 +87,13 @@ fi
dnl If iconv(3) is in an extra lib, then it gets added to variable LIBS.
dnl If not, then no -liconv will be added.
dnl test ticket 151
### LIBICONV=
### ifdef(AM_ICONV, AM_ICONV, AC_CHECK_LIB(iconv, iconv, , ))
### LIBS="$LIBS $LIBICONV"
AC_CHECK_LIB(iconv, iconv, , )
dnl GNU iconv has no function iconv() but libiconv() and a macro iconv()
AC_CHECK_LIB(iconv, libiconv, , )
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)