mirror of https://github.com/mpv-player/mpv
Move toolame vs twolame logic into the $_toolame=auto case.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21927 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
46305348a7
commit
a6cc078d26
|
@ -5659,15 +5659,18 @@ fi
|
||||||
echores "$_twolame"
|
echores "$_twolame"
|
||||||
|
|
||||||
echocheck "Toolame"
|
echocheck "Toolame"
|
||||||
test "$_twolame" = yes && _toolame=no && _res_comment="disabled by twolame"
|
|
||||||
if test "$_toolame" = auto ; then
|
if test "$_toolame" = auto ; then
|
||||||
|
_toolame=no
|
||||||
|
if test "$_twolame" = yes ; then
|
||||||
|
_res_comment="disabled by twolame"
|
||||||
|
else
|
||||||
cat > $TMPC <<EOF
|
cat > $TMPC <<EOF
|
||||||
#include <toolame.h>
|
#include <toolame.h>
|
||||||
int main(void) { toolame_init(); return 0; }
|
int main(void) { toolame_init(); return 0; }
|
||||||
EOF
|
EOF
|
||||||
_toolame=no
|
|
||||||
cc_check -ltoolame $_ld_lm && _toolame=yes
|
cc_check -ltoolame $_ld_lm && _toolame=yes
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
if test "$_toolame" = yes ; then
|
if test "$_toolame" = yes ; then
|
||||||
_def_toolame='#define HAVE_TOOLAME 1'
|
_def_toolame='#define HAVE_TOOLAME 1'
|
||||||
_libs_mencoder="$_libs_mencoder -ltoolame"
|
_libs_mencoder="$_libs_mencoder -ltoolame"
|
||||||
|
|
Loading…
Reference in New Issue