diff mbox

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

Message ID 20170906095806.3070-3-u@pkh.me
State Accepted
Commit b6dce64a8ea5e98ce09916a056a7ac51316c9bce
Headers show

Commit Message

Clément Bœsch Sept. 6, 2017, 9:58 a.m. UTC
From: Clément Bœsch <cboesch@gopro.com>

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

Patch

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