Bug 941296 - Check for CoreMedia headers in configure. r=ted
authorRalph Giles <giles@mozilla.com>
Mon, 28 Jul 2014 13:36:00 -0700
changeset 196865 30b20d83771751123bb5b1935036a39ac11d5ed5
parent 196864 79d249340b3ff3d1b1b0223e0c132718be1bb12d
child 196866 a1fb4230b8b8ab137e286db4bc0ee98b95a4ec97
push id46989
push userrgiles@mozilla.com
push dateWed, 30 Jul 2014 19:55:10 +0000
treeherdermozilla-inbound@30b20d837717 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs941296
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 941296 - Check for CoreMedia headers in configure. r=ted We build against the CoreMedia framework headers which are only available on 10.7 and later, although we run on 10.6. Check that this framework is available an configure time and print a relevant error message in case someone passes --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk.
configure.in
--- a/configure.in
+++ b/configure.in
@@ -5089,16 +5089,19 @@ if test "$MOZ_WIDGET_TOOLKIT" = "cocoa";
   MOZ_APPLEMEDIA=1
 fi
 
 if test -n "$MOZ_APPLEMEDIA"; then
   AC_DEFINE(MOZ_APPLEMEDIA)
   # hack in frameworks for fmp4 - see bug 1029974
   # We load VideoToolbox and CoreMedia dynamically, so they don't appear here.
   LDFLAGS="$LDFLAGS -framework AudioToolbox"
+  dnl Verify CoreMedia is available.
+  AC_CHECK_HEADER([CoreMedia/CoreMedia.h], [],
+    [AC_MSG_ERROR([MacOS X 10.7 SDK or later is required])])
 fi
 
 dnl ========================================================
 dnl = DirectShow support
 dnl ========================================================
 if test "$OS_ARCH" = "WINNT"; then
     dnl Enable DirectShow support by default.
     MOZ_DIRECTSHOW=1