Commit c41b6f302e for ffmpeg

commit c41b6f302ecb04e7a4de8bf6afca5ed7a9115494
Author: Ramiro Polla <ramiro.polla@gmail.com>
Date:   Thu Nov 12 14:09:14 2026 +0100

    configure: drop empty extralibs entries before calling unique()

    Avoid running the quadratic unique() function over components with no
    extralibs.

    configure wall time on linux: 6.93s -> 6.77s

    Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>

diff --git a/configure b/configure
index 227c2d2aec..795f7ec30d 100755
--- a/configure
+++ b/configure
@@ -973,6 +973,16 @@ resolve(){
     eval $1=\$resolve_out
 }

+# removes the names of empty variables from the list
+drop_empty(){
+    drop_empty_out=
+    eval drop_empty_in=\$$1
+    for v in $drop_empty_in; do
+        eval test -n \"\$$v\" && drop_empty_out="$drop_empty_out$v "
+    done
+    eval $1=\$drop_empty_out
+}
+
 add_cppflags(){
     append CPPFLAGS "$@"
 }
@@ -8237,6 +8247,7 @@ flatten_extralibs(){
 flatten_extralibs_wrapper(){
     list_name=$1
     flatten_extralibs $list_name
+    drop_empty $list_name
     unique $list_name
     resolve $list_name
     eval $list_name=\$\(\$ldflags_filter \$$list_name\)