mirror of
https://github.com/mpv-player/mpv
synced 2024-09-09 01:16:56 +02:00
optimize iconv detection \n malloc.h useless in FreeBSD
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2174 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b794a50c73
commit
5ec72e78b7
12
configure
vendored
12
configure
vendored
@ -1895,6 +1895,9 @@ fi
|
||||
|
||||
if test "$_iconv" = yes ; then
|
||||
_iconv='#define USE_ICONV'
|
||||
if test "$system_name" = "FreeBSD" || test "$system_name" = "BSD/OS" ; then
|
||||
_iconvlib="-liconv"
|
||||
fi
|
||||
else
|
||||
_iconv='#undef USE_ICONV'
|
||||
fi
|
||||
@ -1954,7 +1957,8 @@ else
|
||||
_have_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H'
|
||||
fi
|
||||
|
||||
if test "$_malloc_h" = yes ; then
|
||||
# malloc.h useless in FreeBSD
|
||||
if test "$_malloc_h" = yes && test "$system_name" != "FreeBSD" ; then
|
||||
_have_malloc_h='#define HAVE_MALLOC_H 1'
|
||||
else
|
||||
_have_malloc_h='#undef HAVE_MALLOC_H'
|
||||
@ -1999,12 +2003,6 @@ if test "$system_name" = "Linux" || test "$system_name" = "FreeBSD" ; then
|
||||
CFLAGS="$CFLAGS -D_THREAD_SAFE"
|
||||
fi
|
||||
|
||||
if test "$system_name" = "FreeBSD" || test "$system_name" = "BSD/OS" ; then
|
||||
if test "$_iconv" = "#define USE_ICONV" ; then
|
||||
_iconvlib="-liconv"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# 64 bit file offsets?
|
||||
if test "$_largefiles" = yes || test "$system_name" = "FreeBSD" ; then
|
||||
|
Loading…
Reference in New Issue
Block a user