[MPlayer-cvslog] CVS: main configure,1.982,1.983

Nicolas Plourde CVS syncmail at mplayerhq.hu
Fri Apr 29 17:44:48 CEST 2005


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv28031

Modified Files:
	configure 
Log Message:
enable vo_macosx if corevideo available

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.982
retrieving revision 1.983
diff -u -r1.982 -r1.983
--- configure	29 Apr 2005 11:41:07 -0000	1.982
+++ configure	29 Apr 2005 15:44:46 -0000	1.983
@@ -3199,21 +3199,20 @@
     _noaomodules="macosx $_noaomodules"
     _novomodules="quartz $_novomodules"
   fi
-fi
-echores "$_macosx"
-
-echocheck "Mac OS X Core Video Support"
-if test "$_macosx" = yes ; then
-	if test "`sysctl -n kern.osrelease | cut -d "." -f 1`" = "8" ; then
-		echo "yes"
+cat > $TMPC <<EOF
+#include <Carbon/Carbon.h>
+#include <QuartzCore/CoreVideo.h>
+int main(void) {}
+EOF
+	if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then
 		_vosrc="$_vosrc vo_macosx.m"
 		_vomodules="macosx $_vomodules"
 		_macosx_frameworks="$_macosx_frameworks -framework Cocoa -framework QuartzCore -framework OpenGL"
 	else
-		echo "no"
 		_novomodules="macosx $_novomodules"
 	fi
 fi
+echores "$_macosx"
 
 echocheck "Mac OS X Finder Support"
 if test "$_macosx_finder_support" = auto ; then




More information about the MPlayer-cvslog mailing list