This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 305c383d94ccfd261c4e5bdbc02b68e0964935f3
Author:     Marvin Scholz <[email protected]>
AuthorDate: Wed Sep 18 23:18:46 2024 +0200
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue Feb 17 15:17:37 2026 +0000

    configure: add {test,check,require}_pkg_config_cxx
    
    This is necessary to check for C++ only pkg-config dependencies
---
 configure | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/configure b/configure
index 3984bd83d9..afa215d84b 100755
--- a/configure
+++ b/configure
@@ -1642,6 +1642,26 @@ test_pkg_config_cpp(){
         set_sanitized "${name}_incflags" $pkg_incflags
 }
 
+test_pkg_config_cxx(){
+    log test_pkg_config_cxx "$@"
+    name="$1"
+    pkg_version="$2"
+    pkg="${2%% *}"
+    headers="$3"
+    classes="$4"
+    shift 4
+    disable $name
+    test_cmd $pkg_config --exists --print-errors $pkg_version || return
+    pkg_cflags=$($pkg_config --cflags $pkg_config_flags $pkg)
+    pkg_libs=$($pkg_config --libs $pkg_config_flags $pkg)
+    pkg_incdir=$($pkg_config --variable=includedir $pkg_config_flags $pkg)
+    check_class_headers_cxx "$headers" "$classes" $pkg_cflags $pkg_libs 
"-lstdc++" "$@" &&
+        enable $name &&
+        set_sanitized "${name}_cflags"    $pkg_cflags &&
+        set_sanitized "${name}_incdir"    $pkg_incdir &&
+        set_sanitized "${name}_extralibs" $pkg_libs "-lstdc++"
+}
+
 check_pkg_config(){
     log check_pkg_config "$@"
     name="$1"
@@ -1656,6 +1676,13 @@ check_pkg_config_cpp(){
         eval add_cflags \$${name}_cflags
 }
 
+check_pkg_config_cxx(){
+    log check_pkg_config_cxx "$@"
+    name="$1"
+    test_pkg_config_cxx "$@" &&
+        eval add_cxxflags \$${name}_cflags
+}
+
 check_pkg_config_header_only(){
     log check_pkg_config_cpp "$@"
     name="$1"
@@ -1809,6 +1836,12 @@ require_pkg_config_cpp(){
     check_pkg_config_cpp "$@" || die "ERROR: $pkg_version not found using 
pkg-config$pkg_config_fail_message"
 }
 
+require_pkg_config_cxx(){
+    log require_pkg_config_cxx "$@"
+    pkg_version="$2"
+    check_pkg_config_cxx "$@" || die "ERROR: $pkg_version not found using 
pkg-config$pkg_config_fail_message"
+}
+
 test_host_cc(){
     log test_host_cc "$@"
     cat > $TMPC

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to