diff options
author | nexus <nexus@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-22 07:43:32 +0000 |
---|---|---|
committer | nexus <nexus@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-22 07:43:32 +0000 |
commit | 43e4f2c79241c56f92f838e401fc67a4799c7a4a (patch) | |
tree | 2ea8df4190b4be92441ba576aa26b719fc2da20a /configure | |
parent | e1309e782bfcb650b632c2d18384031c47eded60 (diff) | |
download | mpv-43e4f2c79241c56f92f838e401fc67a4799c7a4a.tar.bz2 mpv-43e4f2c79241c56f92f838e401fc67a4799c7a4a.tar.xz |
better FreeBSD iconv implementation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2359 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -896,10 +896,16 @@ else cc_check $_x11libdir -lX11 -lXext -lGL -lm $_socklib && _gl=yes fi +if freebsd ; then + _iconv_tmp='#include <giconv.h>' +else + _iconv_tmp='#include <iconv.h>' +fi + cat > $TMPC << EOF #include <stdio.h> #include <unistd.h> -#include <iconv.h> +$_iconv_tmp #define INBUFSIZE 1024 #define OUTBUFSIZE 4096 @@ -930,7 +936,10 @@ main() EOF _iconv=yes -if freebsd || bsdos ; then +if freebsd ; then + cc_check $_extraincdir $_extralibdir -lm -lgiconv >/dev/null 2>&1 || \ + { _iconv=no ; echo "iconv(3) function not detected!" ;} +elif bsdos ; then cc_check $_extraincdir $_extralibdir -lm -liconv >/dev/null 2>&1 || \ { _iconv=no ; echo "iconv(3) function not detected!" ;} else @@ -1878,7 +1887,9 @@ fi if test "$_iconv" = yes ; then _iconv='#define USE_ICONV' - if freebsd || bsdos ; then + if freebsd ; then + _iconvlib="-lgiconv" + elif bsdos ; then _iconvlib="-liconv" fi else |