[FFmpeg-devel] [PATCH v2 06/10] Better VideoToolbox check in configure.
kernrj at gmail.com
kernrj at gmail.com
Wed Nov 18 19:49:54 CET 2015
From: Rick Kern <kernrj at gmail.com>
---
configure | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/configure b/configure
index 718f285..f99fbd9 100755
--- a/configure
+++ b/configure
@@ -5474,17 +5474,7 @@ enabled openssl && { check_lib openssl/ssl.h SSL_library_init -lssl -l
check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
die "ERROR: openssl not found"; }
-enabled vtenc && { { check_header VideoToolbox/VideoToolbox.h ||
- die "ERROR: VideoToolbox/VideoToolbox.h not found."
- } &&
- { { 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+"
- }
- }
-
+enabled vtenc && require VideoToolbox VideoToolbox/VTCompressionSession.h VTCompressionSessionPrepareToEncodeFrames -framework VideoToolbox
enabled qtkit_indev && { check_header_oc QTKit/QTKit.h || disable qtkit_indev; }
if enabled gnutls; then
--
2.4.9 (Apple Git-60)
More information about the ffmpeg-devel
mailing list