[FFmpeg-devel] [PATCH 3/7] build: add check_apple_framework()

Clément Bœsch u at pkh.me
Wed Sep 6 12:58:02 EEST 2017


From: Clément Bœsch <cboesch at gopro.com>

This will be used in the following commits.
---
 configure | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/configure b/configure
index 442ef606e0..158f9ba24b 100755
--- a/configure
+++ b/configure
@@ -1120,6 +1120,15 @@ check_header_objcc(){
     } | check_objcc && check_stat "$TMPO" && enable_safe $header
 }
 
+check_apple_framework(){
+    log check_apple_framework "$@"
+    framework="$1"
+    name="$(tolower $framework)"
+    header="${framework}/${framework}.h"
+    disable $name
+    check_header_objcc $header && enable $name && add_extralibs "-framework $framework"
+}
+
 check_func(){
     log check_func "$@"
     func=$1
-- 
2.14.1



More information about the ffmpeg-devel mailing list