comparison configure @ 29205:94b0940726ca

Improve CoreVideo check: Test more #includes, add -framework Carbon to LDFLAGS.
author diego
date Mon, 04 May 2009 13:16:04 +0000
parents de815ca5405c
children 5044f4496791
comparison
equal deleted inserted replaced
29204:de815ca5405c 29205:94b0940726ca
3852 3852
3853 echocheck "CoreVideo" 3853 echocheck "CoreVideo"
3854 if test "$_corevideo" = auto ; then 3854 if test "$_corevideo" = auto ; then
3855 cat > $TMPC <<EOF 3855 cat > $TMPC <<EOF
3856 #include <Carbon/Carbon.h> 3856 #include <Carbon/Carbon.h>
3857 #include <CoreServices/CoreServices.h>
3858 #include <OpenGL/OpenGL.h>
3857 #include <QuartzCore/CoreVideo.h> 3859 #include <QuartzCore/CoreVideo.h>
3860 #include <QuickTime/QuickTime.h>
3858 int main(void) { return 0; } 3861 int main(void) { return 0; }
3859 EOF 3862 EOF
3860 _corevideo=no 3863 _corevideo=no
3861 cc_check -framework Carbon -framework QuartzCore -framework OpenGL && _corevideo=yes 3864 cc_check -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL && _corevideo=yes
3862 fi 3865 fi
3863 if test "$_corevideo" = yes ; then 3866 if test "$_corevideo" = yes ; then
3864 _vomodules="macosx $_vomodules" 3867 _vomodules="macosx $_vomodules"
3865 extra_ldflags="$extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL" 3868 extra_ldflags="$extra_ldflags -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL"
3866 def_corevideo='#define CONFIG_COREVIDEO 1' 3869 def_corevideo='#define CONFIG_COREVIDEO 1'
3867 else 3870 else
3868 _novomodules="macosx $_novomodules" 3871 _novomodules="macosx $_novomodules"
3869 def_corevideo='#undef CONFIG_COREVIDEO' 3872 def_corevideo='#undef CONFIG_COREVIDEO'
3870 fi 3873 fi