mirror of
https://github.com/mpv-player/mpv
synced 2025-02-19 22:36:55 +00:00
configure: prefer libvorbis to libvorbisidec/tremor
libvorbis and libvorbisidec cannot both be enabled at the same time. Change configure to enable libvorbis by default if both are available. It's the more common library, and if someone want to do a special build for FPU-less systems he can select the library manually.
This commit is contained in:
parent
6122d83981
commit
3bf725c39f
12
configure
vendored
12
configure
vendored
@ -366,8 +366,8 @@ Codecs:
|
||||
--disable-xvid disable Xvid [autodetect]
|
||||
--disable-libnut disable libnut [autodetect]
|
||||
--disable-ffmpeg disable FFmpeg [autodetect]
|
||||
--disable-tremor disable Tremor [autodetect]
|
||||
--disable-libvorbis disable libvorbis support [autodetect]
|
||||
--disable-tremor disable Tremor [autodetect if no libvorbis]
|
||||
--disable-speex disable Speex support [autodetect]
|
||||
--enable-theora enable OggTheora libraries [autodetect]
|
||||
--enable-faad enable FAAD2 (AAC) [autodetect]
|
||||
@ -5661,13 +5661,13 @@ fi
|
||||
echores "$_mad"
|
||||
|
||||
echocheck "OggVorbis support"
|
||||
if test "$_tremor" = auto; then
|
||||
_tremor=no
|
||||
statement_check tremor/ivorbiscodec.h 'vorbis_packet_blocksize(0, 0)' -logg -lvorbisidec $_ld_lm && _tremor=yes && _libvorbis=no
|
||||
fi
|
||||
if test "$_libvorbis" = auto; then
|
||||
_libvorbis=no
|
||||
statement_check vorbis/codec.h 'vorbis_packet_blocksize(0, 0)' -lvorbis -logg $_ld_lm && _libvorbis=yes
|
||||
statement_check vorbis/codec.h 'vorbis_packet_blocksize(0, 0)' -lvorbis -logg $_ld_lm && _libvorbis=yes && _tremor=no
|
||||
fi
|
||||
if test "$_tremor" = auto; then
|
||||
_tremor=no
|
||||
statement_check tremor/ivorbiscodec.h 'vorbis_packet_blocksize(0, 0)' -logg -lvorbisidec $_ld_lm && _tremor=yes
|
||||
fi
|
||||
if test "$_tremor" = yes ; then
|
||||
_vorbis=yes
|
||||
|
Loading…
Reference in New Issue
Block a user