check for main in libiconv, cause it doesn't define iconv_open, but libiconv_open
git-svn-id: https://svn.musicpd.org/mpd/trunk@991 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
011757d89c
commit
4db513dddb
|
@ -150,7 +150,7 @@ if test x$enable_iconv = xyes; then
|
|||
CPPFLAGS=$CFLAGS
|
||||
AC_CHECK_HEADER(iconv.h,MPD_CFLAGS="$MPD_CFLAGS $ICONV_CFLAGS",enable_iconv=no)
|
||||
if test x$enable_iconv = xyes; then
|
||||
AC_CHECK_LIB(iconv,iconv_open,MPD_LIBS="$MPD_LIBS $ICONV_LIBS",)
|
||||
AC_CHECK_LIB(iconv,main,MPD_LIBS="$MPD_LIBS $ICONV_LIBS",)
|
||||
AC_DEFINE(HAVE_ICONV,1,[Define to use iconv])
|
||||
fi
|
||||
CFLAGS=$oldcflags
|
||||
|
|
Loading…
Reference in New Issue