Mercurial > mplayer.hg
comparison configure @ 29227:87e85a79155c
cosmetics: Move Quartz and CoreVideo checks into the vo driver section.
author | diego |
---|---|
date | Tue, 05 May 2009 23:02:59 +0000 |
parents | bc7354df668a |
children | ce95678d6dc8 |
comparison
equal
deleted
inserted
replaced
29226:bc7354df668a | 29227:87e85a79155c |
---|---|
3805 echores "$_sys_sysinfo" | 3805 echores "$_sys_sysinfo" |
3806 | 3806 |
3807 | 3807 |
3808 if darwin; then | 3808 if darwin; then |
3809 | 3809 |
3810 echocheck "Quartz framework" | |
3811 if test "$_quartz" = auto ; then | |
3812 cat > $TMPC <<EOF | |
3813 #include <Carbon/Carbon.h> | |
3814 #include <QuickTime/QuickTime.h> | |
3815 int main(void) { | |
3816 EnterMovies(); | |
3817 ExitMovies(); | |
3818 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); | |
3819 return 0; | |
3820 } | |
3821 EOF | |
3822 _quartz=no | |
3823 cc_check -framework Carbon -framework QuickTime && _quartz=yes | |
3824 fi | |
3825 if test "$_quartz" = yes ; then | |
3826 libs_mplayer="$libs_mplayer -framework Carbon -framework QuickTime" | |
3827 def_quartz='#define CONFIG_QUARTZ 1' | |
3828 _vomodules="quartz $_vomodules" | |
3829 else | |
3830 def_quartz='#undef CONFIG_QUARTZ' | |
3831 _novomodules="quartz $_novomodules" | |
3832 fi | |
3833 echores $_quartz | |
3834 | |
3835 echocheck "CoreVideo" | |
3836 if test "$_corevideo" = auto ; then | |
3837 cat > $TMPC <<EOF | |
3838 #include <Carbon/Carbon.h> | |
3839 #include <CoreServices/CoreServices.h> | |
3840 #include <OpenGL/OpenGL.h> | |
3841 #include <QuartzCore/CoreVideo.h> | |
3842 int main(void) { return 0; } | |
3843 EOF | |
3844 _corevideo=no | |
3845 cc_check -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL && _corevideo=yes | |
3846 fi | |
3847 if test "$_corevideo" = yes ; then | |
3848 _vomodules="corevideo $_vomodules" | |
3849 libs_mplayer="$libs_mplayer -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL" | |
3850 def_corevideo='#define CONFIG_COREVIDEO 1' | |
3851 else | |
3852 _novomodules="corevideo $_novomodules" | |
3853 def_corevideo='#undef CONFIG_COREVIDEO' | |
3854 fi | |
3855 echores "$_corevideo" | |
3856 | |
3857 echocheck "Mac OS X Finder Support" | 3810 echocheck "Mac OS X Finder Support" |
3858 def_macosx_finder='#undef CONFIG_MACOSX_FINDER' | 3811 def_macosx_finder='#undef CONFIG_MACOSX_FINDER' |
3859 test "$_macosx_finder" = yes && def_macosx_finder='#define CONFIG_MACOSX_FINDER 1' | 3812 test "$_macosx_finder" = yes && def_macosx_finder='#define CONFIG_MACOSX_FINDER 1' |
3860 echores "$_macosx_finder" | 3813 echores "$_macosx_finder" |
3861 | 3814 |
4832 _dvbin=no | 4785 _dvbin=no |
4833 _noinputmodules="dvb $_noinputmodules" | 4786 _noinputmodules="dvb $_noinputmodules" |
4834 fi | 4787 fi |
4835 | 4788 |
4836 | 4789 |
4790 if darwin; then | |
4791 | |
4792 echocheck "Quartz" | |
4793 if test "$_quartz" = auto ; then | |
4794 cat > $TMPC <<EOF | |
4795 #include <Carbon/Carbon.h> | |
4796 #include <QuickTime/QuickTime.h> | |
4797 int main(void) { | |
4798 EnterMovies(); | |
4799 ExitMovies(); | |
4800 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); | |
4801 return 0; | |
4802 } | |
4803 EOF | |
4804 _quartz=no | |
4805 cc_check -framework Carbon -framework QuickTime && _quartz=yes | |
4806 fi | |
4807 if test "$_quartz" = yes ; then | |
4808 libs_mplayer="$libs_mplayer -framework Carbon -framework QuickTime" | |
4809 def_quartz='#define CONFIG_QUARTZ 1' | |
4810 _vomodules="quartz $_vomodules" | |
4811 else | |
4812 def_quartz='#undef CONFIG_QUARTZ' | |
4813 _novomodules="quartz $_novomodules" | |
4814 fi | |
4815 echores $_quartz | |
4816 | |
4817 echocheck "CoreVideo" | |
4818 if test "$_corevideo" = auto ; then | |
4819 cat > $TMPC <<EOF | |
4820 #include <Carbon/Carbon.h> | |
4821 #include <CoreServices/CoreServices.h> | |
4822 #include <OpenGL/OpenGL.h> | |
4823 #include <QuartzCore/CoreVideo.h> | |
4824 int main(void) { return 0; } | |
4825 EOF | |
4826 _corevideo=no | |
4827 cc_check -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL && _corevideo=yes | |
4828 fi | |
4829 if test "$_corevideo" = yes ; then | |
4830 _vomodules="corevideo $_vomodules" | |
4831 libs_mplayer="$libs_mplayer -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL" | |
4832 def_corevideo='#define CONFIG_COREVIDEO 1' | |
4833 else | |
4834 _novomodules="corevideo $_novomodules" | |
4835 def_corevideo='#undef CONFIG_COREVIDEO' | |
4836 fi | |
4837 echores "$_corevideo" | |
4838 | |
4839 fi #if darwin | |
4837 | 4840 |
4838 | 4841 |
4839 echocheck "PNG support" | 4842 echocheck "PNG support" |
4840 if test "$_png" = auto ; then | 4843 if test "$_png" = auto ; then |
4841 _png=no | 4844 _png=no |