]> git.sesse.net Git - vlc/commitdiff
configure.ac: Don't activate opengllayer, if QuartzCore/CALayer.h is not here.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 19 Dec 2007 22:10:51 +0000 (22:10 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 19 Dec 2007 22:10:51 +0000 (22:10 +0000)
configure.ac

index d65d80264f9538a130be63b24db3a6e13eddfa15..3646cd23b60823eb7edd040e178bdf872778b0e1 100644 (file)
@@ -5350,11 +5350,15 @@ then
   VLC_ADD_LDFLAGS([macosx],                           [-Wl,-framework,QTKit])
   VLC_ADD_LDFLAGS([macosx],                           [-Wl,-framework,WebKit])
   VLC_ADD_LDFLAGS([opengllayer],                      [-Wl,-framework,QuartzCore])
-
   VLC_ADD_OBJCFLAGS([macosx minimal_macosx opengllayer], [-fobjc-exceptions] )
 
   VLC_ADD_PLUGINS([access_eyetv])
-  VLC_ADD_BUILTINS([macosx minimal_macosx opengllayer])
+  VLC_ADD_BUILTINS([macosx minimal_macosx])
+  ORIGCFLAGS=$CFLAGS
+  CFLAGS="$CFLAGS -x objective-c"
+  AC_CHECK_HEADER(QuartzCore/CALayer.h, [VLC_ADD_BUILTINS([opengllayer])])
+  CFLAGS=$ORIGCFLAGS
 fi
 
 dnl