Mercurial > mplayer.hg
comparison configure @ 32215:37bf4af10f1b
Simplify libdca check using function_check_broken().
author | diego |
---|---|
date | Sat, 18 Sep 2010 09:50:05 +0000 |
parents | fe807b1b70af |
children | e3942e3b3920 |
comparison
equal
deleted
inserted
replaced
32214:fe807b1b70af | 32215:37bf4af10f1b |
---|---|
6647 | 6647 |
6648 | 6648 |
6649 echocheck "libdca support" | 6649 echocheck "libdca support" |
6650 if test "$_libdca" = auto ; then | 6650 if test "$_libdca" = auto ; then |
6651 _libdca=no | 6651 _libdca=no |
6652 cat > $TMPC << EOF | |
6653 #include <inttypes.h> | |
6654 #include <dts.h> | |
6655 int main(void) { dts_init(0); return 0; } | |
6656 EOF | |
6657 for _ld_dca in -ldca -ldts ; do | 6652 for _ld_dca in -ldca -ldts ; do |
6658 cc_check $_ld_dca $_ld_lm && extra_ldflags="$extra_ldflags $_ld_dca" \ | 6653 function_check_broken stdint.h dts.h 'dts_init(0)' $_ld_dca $_ld_lm && |
6659 && _libdca=yes && break | 6654 extra_ldflags="$extra_ldflags $_ld_dca" && _libdca=yes && break |
6660 done | 6655 done |
6661 fi | 6656 fi |
6662 if test "$_libdca" = yes ; then | 6657 if test "$_libdca" = yes ; then |
6663 def_libdca='#define CONFIG_LIBDCA 1' | 6658 def_libdca='#define CONFIG_LIBDCA 1' |
6664 codecmodules="libdca $codecmodules" | 6659 codecmodules="libdca $codecmodules" |