[vlc-commits] configure.ac: fix linking the OSX UI module if the AVFoundation framework isn't present (read: OSX 10.6)

Felix Paul Kühne git at videolan.org
Thu Apr 18 12:57:54 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Apr 18 12:57:44 2013 +0200| [7f73d8cc15cda0e0d67159b5ffad5b247ac2be38] | committer: Felix Paul Kühne

configure.ac: fix linking the OSX UI module if the AVFoundation framework isn't present (read: OSX 10.6)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f73d8cc15cda0e0d67159b5ffad5b247ac2be38
---

 configure.ac |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 61f0613..632fb88 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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



More information about the vlc-commits mailing list