Mercurial > mplayer.hg
comparison configure @ 29191:c13e6f9c65c2
Split generic OS X API check into separate CoreAudio, CoreVideo, Quartz checks.
author | diego |
---|---|
date | Sat, 25 Apr 2009 17:48:48 +0000 |
parents | cb11a0c11f5e |
children | 2d917ca20886 |
comparison
equal
deleted
inserted
replaced
29190:cb11a0c11f5e | 29191:c13e6f9c65c2 |
---|---|
268 --disable-unrarexec disable using of UnRAR executable [enabled] | 268 --disable-unrarexec disable using of UnRAR executable [enabled] |
269 --enable-menu enable OSD menu (not DVD menu) [disabled] | 269 --enable-menu enable OSD menu (not DVD menu) [disabled] |
270 --disable-sortsub disable subtitle sorting [enabled] | 270 --disable-sortsub disable subtitle sorting [enabled] |
271 --enable-fribidi enable the FriBiDi libs [autodetect] | 271 --enable-fribidi enable the FriBiDi libs [autodetect] |
272 --disable-enca disable ENCA charset oracle library [autodetect] | 272 --disable-enca disable ENCA charset oracle library [autodetect] |
273 --disable-macosx disable Mac OS X specific features [autodetect] | |
274 --disable-maemo disable maemo specific features [autodetect] | 273 --disable-maemo disable maemo specific features [autodetect] |
275 --enable-macosx-finder enable Mac OS X Finder invocation parameter | 274 --enable-macosx-finder enable Mac OS X Finder invocation parameter |
276 parsing [disabled] | 275 parsing [disabled] |
277 --enable-macosx-bundle enable Mac OS X bundle file locations [autodetect] | 276 --enable-macosx-bundle enable Mac OS X bundle file locations [autodetect] |
278 --disable-inet6 disable IPv6 support [autodetect] | 277 --disable-inet6 disable IPv6 support [autodetect] |
404 --enable-xvr100 enable SUN XVR-100 video output [autodetect] | 403 --enable-xvr100 enable SUN XVR-100 video output [autodetect] |
405 --disable-tga disable Targa video output [enable] | 404 --disable-tga disable Targa video output [enable] |
406 --disable-pnm disable PNM video output [enable] | 405 --disable-pnm disable PNM video output [enable] |
407 --disable-md5sum disable md5sum video output [enable] | 406 --disable-md5sum disable md5sum video output [enable] |
408 --disable-yuv4mpeg disable yuv4mpeg video output [enable] | 407 --disable-yuv4mpeg disable yuv4mpeg video output [enable] |
408 --disable-corevideo disable CoreVideo video output [autodetect] | |
409 --disable-quartz disable Quartz video output [autodetect] | |
409 | 410 |
410 Audio output: | 411 Audio output: |
411 --disable-alsa disable ALSA audio output [autodetect] | 412 --disable-alsa disable ALSA audio output [autodetect] |
412 --disable-ossaudio disable OSS audio output [autodetect] | 413 --disable-ossaudio disable OSS audio output [autodetect] |
413 --disable-arts disable aRts audio output [autodetect] | 414 --disable-arts disable aRts audio output [autodetect] |
418 --disable-nas disable NAS audio output [autodetect] | 419 --disable-nas disable NAS audio output [autodetect] |
419 --disable-sgiaudio disable SGI audio output [autodetect] | 420 --disable-sgiaudio disable SGI audio output [autodetect] |
420 --disable-sunaudio disable Sun audio output [autodetect] | 421 --disable-sunaudio disable Sun audio output [autodetect] |
421 --disable-dart disable DART audio output [autodetect] | 422 --disable-dart disable DART audio output [autodetect] |
422 --disable-win32waveout disable Windows waveout audio output [autodetect] | 423 --disable-win32waveout disable Windows waveout audio output [autodetect] |
424 --disable-coreaudio disable CoreAudio audio output [autodetect] | |
423 --disable-select disable using select() on the audio device [enable] | 425 --disable-select disable using select() on the audio device [enable] |
424 | 426 |
425 Miscellaneous options: | 427 Miscellaneous options: |
426 --enable-runtime-cpudetection enable runtime CPU detection [disable] | 428 --enable-runtime-cpudetection enable runtime CPU detection [disable] |
427 --enable-cross-compile enable cross-compilation [autodetect] | 429 --enable-cross-compile enable cross-compilation [autodetect] |
704 _bitmap_font=yes | 706 _bitmap_font=yes |
705 _freetype=auto | 707 _freetype=auto |
706 _fontconfig=auto | 708 _fontconfig=auto |
707 _menu=no | 709 _menu=no |
708 _qtx=auto | 710 _qtx=auto |
709 _macosx=auto | |
710 _maemo=auto | 711 _maemo=auto |
712 _coreaudio=auto | |
713 _corevideo=auto | |
714 _quartz=auto | |
711 _macosx_finder=no | 715 _macosx_finder=no |
712 _macosx_bundle=auto | 716 _macosx_bundle=auto |
713 _sortsub=yes | 717 _sortsub=yes |
714 _freetypeconfig='freetype-config' | 718 _freetypeconfig='freetype-config' |
715 _fribidi=auto | 719 _fribidi=auto |
1243 --disable-menu) _menu=no ;; | 1247 --disable-menu) _menu=no ;; |
1244 | 1248 |
1245 --enable-qtx) _qtx=yes ;; | 1249 --enable-qtx) _qtx=yes ;; |
1246 --disable-qtx) _qtx=no ;; | 1250 --disable-qtx) _qtx=no ;; |
1247 | 1251 |
1248 --enable-macosx) _macosx=yes ;; | 1252 --enable-coreaudio) _coreaudio=yes ;; |
1249 --disable-macosx) _macosx=no ;; | 1253 --disable-coreaudio) _coreaudio=no ;; |
1254 --enable-corevideo) _corevideo=yes ;; | |
1255 --disable-corevideo) _corevideo=no ;; | |
1256 --enable-quartz) _quartz=yes ;; | |
1257 --disable-quartz) _quartz=no ;; | |
1250 --enable-macosx-finder) _macosx_finder=yes ;; | 1258 --enable-macosx-finder) _macosx_finder=yes ;; |
1251 --disable-macosx-finder) _macosx_finder=no ;; | 1259 --disable-macosx-finder) _macosx_finder=no ;; |
1252 --enable-macosx-bundle) _macosx_bundle=yes;; | 1260 --enable-macosx-bundle) _macosx_bundle=yes;; |
1253 --disable-macosx-bundle) _macosx_bundle=no;; | 1261 --disable-macosx-bundle) _macosx_bundle=no;; |
1254 | 1262 |
3793 echores "$_sys_sysinfo" | 3801 echores "$_sys_sysinfo" |
3794 | 3802 |
3795 | 3803 |
3796 if darwin; then | 3804 if darwin; then |
3797 | 3805 |
3798 echocheck "Mac OS X APIs" | 3806 echocheck "CoreAudio" |
3799 if test "$_macosx" = auto ; then | 3807 if test "$_coreaudio" = auto ; then |
3800 productName=$(/usr/bin/sw_vers -productName) | |
3801 if test "$productName" = "Mac OS X" || | |
3802 test "$productName" = "Mac OS X Server" ; then | |
3803 _macosx=yes | |
3804 else | |
3805 _macosx=no | |
3806 _noaomodules="macosx $_noaomodules" | |
3807 _novomodules="macosx quartz $_novomodules" | |
3808 fi | |
3809 fi | |
3810 if test "$_macosx" = yes ; then | |
3811 cat > $TMPC <<EOF | 3808 cat > $TMPC <<EOF |
3812 #include <CoreAudio/CoreAudio.h> | 3809 #include <CoreAudio/CoreAudio.h> |
3813 int main(void) { return 0; } | 3810 int main(void) { return 0; } |
3814 EOF | 3811 EOF |
3815 if cc_check -framework CoreAudio; then | 3812 _coreaudio=no |
3813 cc_check -framework CoreAudio && _coreaudio=yes | |
3814 fi | |
3815 if test "$_coreaudio" = yes ; then | |
3816 extra_ldflags="$extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox" | 3816 extra_ldflags="$extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox" |
3817 _coreaudio=yes | |
3818 def_coreaudio='#define CONFIG_COREAUDIO 1' | 3817 def_coreaudio='#define CONFIG_COREAUDIO 1' |
3819 _aomodules="macosx $_aomodules" | 3818 _aomodules="macosx $_aomodules" |
3820 else | 3819 else |
3821 _coreaudio=no | |
3822 def_coreaudio='#undef CONFIG_COREAUDIO' | 3820 def_coreaudio='#undef CONFIG_COREAUDIO' |
3823 _noaomodules="macosx $_noaomodules" | 3821 _noaomodules="macosx $_noaomodules" |
3824 fi | 3822 fi |
3823 echores $_coreaudio | |
3824 | |
3825 | |
3826 echocheck "Quartz framework" | |
3827 if test "$_quartz" = auto ; then | |
3825 cat > $TMPC <<EOF | 3828 cat > $TMPC <<EOF |
3826 #include <Carbon/Carbon.h> | 3829 #include <Carbon/Carbon.h> |
3827 #include <QuickTime/QuickTime.h> | 3830 #include <QuickTime/QuickTime.h> |
3828 int main(void) { | 3831 int main(void) { |
3829 EnterMovies(); | 3832 EnterMovies(); |
3830 ExitMovies(); | 3833 ExitMovies(); |
3831 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); | 3834 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); |
3832 return 0; | 3835 return 0; |
3833 } | 3836 } |
3834 EOF | 3837 EOF |
3835 if cc_check -framework Carbon -framework QuickTime; then | 3838 _quartz=no |
3839 cc_check -framework Carbon -framework QuickTime && _quartz=yes | |
3840 fi | |
3841 if test "$_quartz" = yes ; then | |
3836 extra_ldflags="$extra_ldflags -framework Carbon -framework QuickTime" | 3842 extra_ldflags="$extra_ldflags -framework Carbon -framework QuickTime" |
3837 _quartz=yes | |
3838 def_quartz='#define CONFIG_QUARTZ 1' | 3843 def_quartz='#define CONFIG_QUARTZ 1' |
3839 _vomodules="quartz $_vomodules" | 3844 _vomodules="quartz $_vomodules" |
3840 def_quicktime='#define CONFIG_QUICKTIME 1' | 3845 def_quicktime='#define CONFIG_QUICKTIME 1' |
3841 else | 3846 else |
3842 _quartz=no | |
3843 def_quartz='#undef CONFIG_QUARTZ' | 3847 def_quartz='#undef CONFIG_QUARTZ' |
3844 _novomodules="quartz $_novomodules" | 3848 _novomodules="quartz $_novomodules" |
3845 def_quicktime='#undef CONFIG_QUICKTIME' | 3849 def_quicktime='#undef CONFIG_QUICKTIME' |
3846 fi | 3850 fi |
3851 echores $_quartz | |
3852 | |
3853 echocheck "CoreVideo" | |
3854 if test "$_corevideo" = auto ; then | |
3847 cat > $TMPC <<EOF | 3855 cat > $TMPC <<EOF |
3848 #include <Carbon/Carbon.h> | 3856 #include <Carbon/Carbon.h> |
3849 #include <QuartzCore/CoreVideo.h> | 3857 #include <QuartzCore/CoreVideo.h> |
3850 int main(void) { return 0; } | 3858 int main(void) { return 0; } |
3851 EOF | 3859 EOF |
3852 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then | 3860 _corevideo=no |
3861 cc_check -framework Carbon -framework QuartzCore -framework OpenGL && _corevideo=yes | |
3862 fi | |
3863 if test "$_corevideo" = yes ; then | |
3853 _vomodules="macosx $_vomodules" | 3864 _vomodules="macosx $_vomodules" |
3854 extra_ldflags="$extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL" | 3865 extra_ldflags="$extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL" |
3855 def_corevideo='#define CONFIG_COREVIDEO 1' | 3866 def_corevideo='#define CONFIG_COREVIDEO 1' |
3856 _corevideo=yes | |
3857 else | 3867 else |
3858 _novomodules="macosx $_novomodules" | 3868 _novomodules="macosx $_novomodules" |
3859 def_corevideo='#undef CONFIG_COREVIDEO' | 3869 def_corevideo='#undef CONFIG_COREVIDEO' |
3860 _corevideo=no | |
3861 fi | 3870 fi |
3862 fi | 3871 echores "$_corevideo" |
3863 echores "$_macosx" | |
3864 | 3872 |
3865 echocheck "Mac OS X Finder Support" | 3873 echocheck "Mac OS X Finder Support" |
3866 if test "$_macosx_finder" = auto ; then | |
3867 _macosx_finder=$_macosx | |
3868 fi | |
3869 if test "$_macosx_finder" = yes; then | 3874 if test "$_macosx_finder" = yes; then |
3870 def_macosx_finder='#define CONFIG_MACOSX_FINDER 1' | 3875 def_macosx_finder='#define CONFIG_MACOSX_FINDER 1' |
3871 _macosx_finder=yes | |
3872 else | 3876 else |
3873 def_macosx_finder='#undef CONFIG_MACOSX_FINDER' | 3877 def_macosx_finder='#undef CONFIG_MACOSX_FINDER' |
3874 _macosx_finder=no | |
3875 fi | 3878 fi |
3876 echores "$_macosx_finder" | 3879 echores "$_macosx_finder" |
3877 | 3880 |
3878 echocheck "Mac OS X Bundle file locations" | 3881 echocheck "Mac OS X Bundle file locations" |
3879 if test "$_macosx_bundle" = auto ; then | 3882 if test "$_macosx_bundle" = auto ; then |