Mercurial > mplayer.hg
comparison configure @ 29092:5dc97d7041d1
Support for libbs2b audio filter.
Add auto detection and selection routines to configure.
author | bircoph |
---|---|
date | Thu, 02 Apr 2009 19:01:23 +0000 |
parents | 5d69a3e1bbdf |
children | d29b96d8e240 |
comparison
equal
deleted
inserted
replaced
29091:5d69a3e1bbdf | 29092:5dc97d7041d1 |
---|---|
324 --disable-faad-internal disable internal FAAD2 (AAC) [autodetect] | 324 --disable-faad-internal disable internal FAAD2 (AAC) [autodetect] |
325 --enable-faad-fixed enable fixed-point mode in internal FAAD2 [disabled] | 325 --enable-faad-fixed enable fixed-point mode in internal FAAD2 [disabled] |
326 --disable-faac disable support for FAAC (AAC encoder) [autodetect] | 326 --disable-faac disable support for FAAC (AAC encoder) [autodetect] |
327 --disable-faac-lavc disable support for FAAC in libavcodec [autodetect] | 327 --disable-faac-lavc disable support for FAAC in libavcodec [autodetect] |
328 --disable-ladspa disable LADSPA plugin support [autodetect] | 328 --disable-ladspa disable LADSPA plugin support [autodetect] |
329 --disable-libbs2b disable libbs2b audio filter support [autodetect] | |
329 --disable-libdv disable libdv 0.9.5 en/decoding support [autodetect] | 330 --disable-libdv disable libdv 0.9.5 en/decoding support [autodetect] |
330 --disable-mad disable libmad (MPEG audio) support [autodetect] | 331 --disable-mad disable libmad (MPEG audio) support [autodetect] |
331 --disable-mp3lame disable LAME MP3 encoding support [autodetect] | 332 --disable-mp3lame disable LAME MP3 encoding support [autodetect] |
332 --disable-mp3lame-lavc disable LAME in libavcodec [autodetect] | 333 --disable-mp3lame-lavc disable LAME in libavcodec [autodetect] |
333 --disable-toolame disable Toolame (MPEG layer 2) encoding [autodetect] | 334 --disable-toolame disable Toolame (MPEG layer 2) encoding [autodetect] |
614 _faad_internal=auto | 615 _faad_internal=auto |
615 _faad_fixed=no | 616 _faad_fixed=no |
616 _faac=auto | 617 _faac=auto |
617 _faac_lavc=auto | 618 _faac_lavc=auto |
618 _ladspa=auto | 619 _ladspa=auto |
620 _libbs2b=auto | |
619 _xmms=no | 621 _xmms=no |
620 _dvdnav=auto | 622 _dvdnav=auto |
621 _dvdnavconfig=dvdnav-config | 623 _dvdnavconfig=dvdnav-config |
622 _dvdreadconfig=dvdread-config | 624 _dvdreadconfig=dvdread-config |
623 _dvdread=auto | 625 _dvdread=auto |
1011 --disable-faac) _faac=no ;; | 1013 --disable-faac) _faac=no ;; |
1012 --enable-faac-lavc) _faac_lavc=yes ;; | 1014 --enable-faac-lavc) _faac_lavc=yes ;; |
1013 --disable-faac-lavc) _faac_lavc=no ;; | 1015 --disable-faac-lavc) _faac_lavc=no ;; |
1014 --enable-ladspa) _ladspa=yes ;; | 1016 --enable-ladspa) _ladspa=yes ;; |
1015 --disable-ladspa) _ladspa=no ;; | 1017 --disable-ladspa) _ladspa=no ;; |
1018 --enable-libbs2b) _libbs2b=yes ;; | |
1019 --disable-libbs2b) _libbs2b=no ;; | |
1016 --enable-xmms) _xmms=yes ;; | 1020 --enable-xmms) _xmms=yes ;; |
1017 --disable-xmms) _xmms=no ;; | 1021 --disable-xmms) _xmms=no ;; |
1018 --enable-dvdread) _dvdread=yes ;; | 1022 --enable-dvdread) _dvdread=yes ;; |
1019 --disable-dvdread) _dvdread=no ;; | 1023 --disable-dvdread) _dvdread=no ;; |
1020 --enable-dvdread-internal) _dvdread_internal=yes ;; | 1024 --enable-dvdread-internal) _dvdread_internal=yes ;; |
6595 def_ladspa="#undef CONFIG_LADSPA" | 6599 def_ladspa="#undef CONFIG_LADSPA" |
6596 fi | 6600 fi |
6597 echores "$_ladspa" | 6601 echores "$_ladspa" |
6598 | 6602 |
6599 | 6603 |
6604 echocheck "libbs2b audio filter support" | |
6605 if test "$_libbs2b" = auto ; then | |
6606 cat > $TMPC <<EOF | |
6607 #include <bs2b.h> | |
6608 #if BS2B_VERSION_MAJOR < 3 | |
6609 #error Please use libbs2b >= 3.0.0, older versions are not supported. | |
6610 #endif | |
6611 int main(void) { | |
6612 t_bs2bdp filter; | |
6613 filter=bs2b_open(); | |
6614 bs2b_close(filter); | |
6615 return 0; | |
6616 } | |
6617 EOF | |
6618 _libbs2b=no | |
6619 if $_pkg_config --exists libbs2b ; then | |
6620 _inc_tmp=$($_pkg_config --cflags libbs2b) | |
6621 _ld_tmp=$($_pkg_config --libs libbs2b) | |
6622 cc_check $_inc_tmp $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && | |
6623 extra_cflags="$extra_cflags $_inc_tmp" && _libbs2b=yes | |
6624 else | |
6625 for _inc_tmp in "" -I/usr/include/bs2b -I/usr/local/include \ | |
6626 -I/usr/local/include/bs2b ; do | |
6627 if cc_check $_inc_tmp $_ld_lm -lbs2b ; then | |
6628 extra_ldflags="$extra_ldflags -lbs2b" | |
6629 extra_cflags="$extra_cflags $_inc_tmp" | |
6630 _libbs2b=yes | |
6631 break | |
6632 fi | |
6633 done | |
6634 fi | |
6635 fi | |
6636 def_libbs2b="#undef CONFIG_LIBBS2B" | |
6637 test "$_libbs2b" = yes && def_libbs2b="#define CONFIG_LIBBS2B" | |
6638 echores "$_libbs2b" | |
6639 | |
6640 | |
6600 if test -z "$_codecsdir" ; then | 6641 if test -z "$_codecsdir" ; then |
6601 for dir in "$_libdir/codecs" "$_libdir/win32" /usr/local/lib/codecs \ | 6642 for dir in "$_libdir/codecs" "$_libdir/win32" /usr/local/lib/codecs \ |
6602 /usr/lib/codecs /usr/local/lib/win32 /usr/lib/win32 ; do | 6643 /usr/lib/codecs /usr/local/lib/win32 /usr/lib/win32 ; do |
6603 if test -d "$dir" ; then | 6644 if test -d "$dir" ; then |
6604 _codecsdir="$dir" | 6645 _codecsdir="$dir" |
8181 KVA = $_kva | 8222 KVA = $_kva |
8182 LADSPA = $_ladspa | 8223 LADSPA = $_ladspa |
8183 LIBA52 = $_liba52 | 8224 LIBA52 = $_liba52 |
8184 LIBA52_INTERNAL = $_liba52_internal | 8225 LIBA52_INTERNAL = $_liba52_internal |
8185 LIBASS = $_ass | 8226 LIBASS = $_ass |
8227 LIBBS2B = $_libbs2b | |
8186 LIBDCA = $_libdca | 8228 LIBDCA = $_libdca |
8187 LIBDV = $_libdv | 8229 LIBDV = $_libdv |
8188 LIBDVDCSS_INTERNAL = $_libdvdcss_internal | 8230 LIBDVDCSS_INTERNAL = $_libdvdcss_internal |
8189 LIBLZO = $_liblzo | 8231 LIBLZO = $_liblzo |
8190 LIBMAD = $_mad | 8232 LIBMAD = $_mad |
8602 $def_sgiaudio | 8644 $def_sgiaudio |
8603 $def_sunaudio | 8645 $def_sunaudio |
8604 $def_win32waveout | 8646 $def_win32waveout |
8605 | 8647 |
8606 $def_ladspa | 8648 $def_ladspa |
8649 $def_libbs2b | |
8607 | 8650 |
8608 | 8651 |
8609 /* input */ | 8652 /* input */ |
8610 $def_apple_ir | 8653 $def_apple_ir |
8611 $def_apple_remote | 8654 $def_apple_remote |