X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=c2dc0e8cd3ed859d11d9a4b9de76084cf5049619;hb=f3a7c2a5d9f200bb51ecf9a8c97612cdc6660379;hp=9ccca3f1e8434380e19b8d172386ebed87788c39;hpb=dc4e58e22c74095a0b5354c10b12f31f73d4f968;p=supertux.git diff --git a/configure.ac b/configure.ac index 9ccca3f1e..c2dc0e8cd 100644 --- a/configure.ac +++ b/configure.ac @@ -93,15 +93,8 @@ else AC_MSG_RESULT([no]) fi -iconv_found=no -AC_MSG_CHECKING([for iconv]) -AC_TRY_LINK([#include ], [iconv_open(0, 0);], [iconv_found="yes"]) -AS_IF([test "$iconv_found" = no], - LIBS="$LIBS -liconv" - AC_TRY_LINK([#include ], [iconv_open(0, 0);], [iconv_found="yes"])) -AS_IF([test "$iconv_found" = no], - AC_MSG_ERROR([Couldn't find iconv library]), - AC_MSG_RESULT([found])) +AM_ICONV +AC_SUBST([ICONV_LIBS], [$LIBICONV]) dnl =========================================================================== dnl Check for SDL