]> git.sesse.net Git - vlc/commitdiff
configure.ac: fix linking the OSX UI module if the AVFoundation framework isn't prese...
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 18 Apr 2013 10:57:44 +0000 (12:57 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 18 Apr 2013 10:57:44 +0000 (12:57 +0200)
configure.ac

index 61f061333fc75a9fc136f9525880d12b6f758a8e..632fb8809c24635d01a9dcff9b53485aac303b0e 100644 (file)
@@ -3760,7 +3760,10 @@ then
   VLC_ADD_OBJCFLAGS([macosx], [-fobjc-exceptions] )
   VLC_ADD_PLUGIN([macosx])
 
-  VLC_ADD_LIBS([macosx], [-Wl,-framework,QTKit -Wl,-framework,AVFoundation -Wl,-framework,IOKit -Wl,-framework,AddressBook -Wl,-framework,WebKit -Wl,-framework,CoreAudio -Wl,-framework,SystemConfiguration -Wl,-framework,ScriptingBridge])
+  VLC_ADD_LIBS([macosx], [-Wl,-framework,QTKit -Wl,-framework,IOKit -Wl,-framework,AddressBook -Wl,-framework,WebKit -Wl,-framework,CoreAudio -Wl,-framework,SystemConfiguration -Wl,-framework,ScriptingBridge])
+
+  AC_CHECK_HEADERS(AVFoundation/AVFoundation.h,
+                       [VLC_ADD_LIBS([macosx],[-Wl,-framework,AVFoundation])])
 
   if test ! -d ${CONTRIB_DIR}/Sparkle.framework
   then