Mercurial > mplayer.hg
comparison configure @ 27995:2aaf331731eb
add specific test to check if we can enable ao_macosx not matter how vo_quartz test may turn out
author | gpoirier |
---|---|
date | Mon, 24 Nov 2008 17:27:05 +0000 |
parents | 327a98d2b55d |
children | 4480c422624d |
comparison
equal
deleted
inserted
replaced
27994:6aaa7be68416 | 27995:2aaf331731eb |
---|---|
3580 _novomodules="macosx quartz $_novomodules" | 3580 _novomodules="macosx quartz $_novomodules" |
3581 fi | 3581 fi |
3582 fi | 3582 fi |
3583 if test "$_macosx" = yes ; then | 3583 if test "$_macosx" = yes ; then |
3584 cat > $TMPC <<EOF | 3584 cat > $TMPC <<EOF |
3585 #include <CoreAudio/CoreAudio.h> | |
3586 int main(void) { return 0; } | |
3587 EOF | |
3588 if cc_check -framework CoreAudio; then | |
3589 _ld_extra="$_ld_extra -framework CoreAudio -framework AudioUnit -framework AudioToolbox" | |
3590 _coreaudio=yes | |
3591 _def_coreaudio='#define CONFIG_COREAUDIO 1' | |
3592 _aosrc="$_aosrc ao_macosx.c" | |
3593 _aomodules="macosx $_aomodules" | |
3594 else | |
3595 _coreaudio=no | |
3596 _def_coreaudio='#undef CONFIG_COREAUDIO' | |
3597 _noaomodules="macosx $_noaomodules" | |
3598 fi | |
3599 cat > $TMPC <<EOF | |
3585 #include <Carbon/Carbon.h> | 3600 #include <Carbon/Carbon.h> |
3586 #include <QuickTime/QuickTime.h> | 3601 #include <QuickTime/QuickTime.h> |
3587 #include <CoreAudio/CoreAudio.h> | |
3588 int main(void) { | 3602 int main(void) { |
3589 EnterMovies(); | 3603 EnterMovies(); |
3590 ExitMovies(); | 3604 ExitMovies(); |
3591 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); | 3605 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); |
3592 return 0; | 3606 return 0; |