Mercurial > mplayer.hg
comparison configure @ 9321:6fa743f3094b
libfaad2 v1.0, v1.1, v1.2 detection, and API change workaround in ad_faad.c
based on patch by Andre Schulz <andre@0wnage.de>
author | arpi |
---|---|
date | Fri, 07 Feb 2003 21:04:35 +0000 |
parents | 7a0d466a51a8 |
children | 1670357372d5 |
comparison
equal
deleted
inserted
replaced
9320:c5bb811fa7fc | 9321:6fa743f3094b |
---|---|
3749 _nocodecmodules="libvorbis $_nocodecmodules" | 3749 _nocodecmodules="libvorbis $_nocodecmodules" |
3750 fi | 3750 fi |
3751 echores "$_vorbis" | 3751 echores "$_vorbis" |
3752 | 3752 |
3753 | 3753 |
3754 echocheck "FAAD (AAC) support" | 3754 echocheck "faad2 (AAC) support" |
3755 if test "$_faad" = auto ; then | 3755 if test "$_faad" = auto ; then |
3756 _faad=no | 3756 _faad=no |
3757 cat > $TMPC << EOF | 3757 cat > $TMPC << EOF |
3758 #include <faad.h> | 3758 #include <faad.h> |
3759 int main(void) { faacDecHandle testhand; faacDecFrameInfo testinfo; testhand = faacDecOpen(); return 0; } | 3759 int main(void) { faacDecHandle testhand; faacDecFrameInfo testinfo; testhand = faacDecOpen(); return 0; } |
3764 _def_faad='#define HAVE_FAAD 1' | 3764 _def_faad='#define HAVE_FAAD 1' |
3765 _ld_faad='-lfaad' | 3765 _ld_faad='-lfaad' |
3766 else | 3766 else |
3767 _def_faad='#undef HAVE_FAAD' | 3767 _def_faad='#undef HAVE_FAAD' |
3768 fi | 3768 fi |
3769 echores "$_faad" | 3769 |
3770 if test "$_faad" = yes; then | |
3771 cat > $TMPC <<EOF | |
3772 #include <faad.h> | |
3773 #ifndef FAAD_MIN_STREAMSIZE | |
3774 #error Too old version | |
3775 #endif | |
3776 int main(void) { | |
3777 #ifdef FAAD2_VERSION | |
3778 printf("%s",FAAD2_VERSION); | |
3779 #else | |
3780 printf("1.0"); | |
3781 #endif | |
3782 return 0; | |
3783 } | |
3784 EOF | |
3785 if cc_check $_ld_faad -lm && "$TMPO" >> "$TMPLOG" ; then | |
3786 _faad_version=`"$TMPO"` | |
3787 _faad_tempversion=`"$TMPO" | sed -e 's/^\([0-9]\+\)\.\([0-9]\+\).*/\1\2/'` | |
3788 _def_faad_version="#define FAADVERSION $_faad_tempversion" | |
3789 echores "yes ($_faad_version)" | |
3790 else | |
3791 _faad=no | |
3792 echores "no (failed to get version)" | |
3793 fi | |
3794 else | |
3795 echores "$_faad" | |
3796 fi | |
3770 | 3797 |
3771 if test "$_win32" = auto ; then | 3798 if test "$_win32" = auto ; then |
3772 if x86 ; then | 3799 if x86 ; then |
3773 cygwin && _win32=no # Win32 DLLs not supported under Cygwin | 3800 cygwin && _win32=no # Win32 DLLs not supported under Cygwin |
3774 qnx && _win32=no | 3801 qnx && _win32=no |
5249 /* enable Tremor as vorbis decoder */ | 5276 /* enable Tremor as vorbis decoder */ |
5250 $_def_tremor | 5277 $_def_tremor |
5251 | 5278 |
5252 /* enable FAAD (AAC) support */ | 5279 /* enable FAAD (AAC) support */ |
5253 $_def_faad | 5280 $_def_faad |
5281 $_def_faad_version | |
5254 | 5282 |
5255 /* enable streaming */ | 5283 /* enable streaming */ |
5256 $_def_streaming | 5284 $_def_streaming |
5257 | 5285 |
5258 /* define this to use inet_aton() instead of inet_pton() */ | 5286 /* define this to use inet_aton() instead of inet_pton() */ |