[FFmpeg-devel] [PATCH v2 05/10] vtenc: Check for min iOS/OSX versions.

kernrj at gmail.com kernrj at gmail.com
Wed Nov 18 19:49:53 CET 2015


From: Rick Kern <kernrj at gmail.com>

configure was checking for the SDK version being used to compile. Now it compares against the minimum deployment target.

Signed-off-by: Rick Kern <kernrj at gmail.com>
---
 configure | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index e465424..718f285 100755
--- a/configure
+++ b/configure
@@ -5477,9 +5477,9 @@ enabled openssl           && { check_lib openssl/ssl.h SSL_library_init -lssl -l
 enabled vtenc             && { { check_header VideoToolbox/VideoToolbox.h ||
                                  die "ERROR: VideoToolbox/VideoToolbox.h not found."
                                } &&
-                               { check_header "Availability.h" &&
-                                 { check_cpp_condition "Availability.h" "defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0" ||
-                                   check_cpp_condition "Availability.h" "defined(__MAC_10_9) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_9"
+                               { { check_header "Availability.h" || die "Availability.h missing"; }&&
+                                 { check_cpp_condition "Availability.h" "defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0" ||
+                                   check_cpp_condition "Availability.h" "defined(__MAC_10_9) && __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_9"
                                   } ||
                                   die "VideoToolbox requires Mac OSX 10.9+ or iOS 8.0+"
                                }
-- 
2.4.9 (Apple Git-60)



More information about the ffmpeg-devel mailing list