Mercurial > mplayer.hg
comparison configure @ 29216:34a9a4fe6e1d
Improve CoreAudio check: Use all required headers and frameworks.
author | diego |
---|---|
date | Tue, 05 May 2009 08:49:07 +0000 |
parents | d0ecbaeb6f51 |
children | a8c76e85b9e6 |
comparison
equal
deleted
inserted
replaced
29215:d0ecbaeb6f51 | 29216:34a9a4fe6e1d |
---|---|
3805 | 3805 |
3806 echocheck "CoreAudio" | 3806 echocheck "CoreAudio" |
3807 if test "$_coreaudio" = auto ; then | 3807 if test "$_coreaudio" = auto ; then |
3808 cat > $TMPC <<EOF | 3808 cat > $TMPC <<EOF |
3809 #include <CoreAudio/CoreAudio.h> | 3809 #include <CoreAudio/CoreAudio.h> |
3810 #include <AudioToolbox/AudioToolbox.h> | |
3811 #include <AudioUnit/AudioUnit.h> | |
3810 int main(void) { return 0; } | 3812 int main(void) { return 0; } |
3811 EOF | 3813 EOF |
3812 _coreaudio=no | 3814 _coreaudio=no |
3813 cc_check -framework CoreAudio && _coreaudio=yes | 3815 cc_check -framework CoreAudio -framework AudioUnit -framework AudioToolbox && _coreaudio=yes |
3814 fi | 3816 fi |
3815 if test "$_coreaudio" = yes ; then | 3817 if test "$_coreaudio" = yes ; then |
3816 extra_ldflags="$extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox" | 3818 extra_ldflags="$extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox" |
3817 def_coreaudio='#define CONFIG_COREAUDIO 1' | 3819 def_coreaudio='#define CONFIG_COREAUDIO 1' |
3818 _aomodules="coreaudio $_aomodules" | 3820 _aomodules="coreaudio $_aomodules" |