aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-01-25 14:44:07 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-01-26 03:43:31 +0100
commit9c5c348eefcef41b1d0e459348dadeeb731e8b59 (patch)
treebb87772f93bcf321e0c3a846ada3b8c573dc0561 /configure
parentac3c04e4d6532970747d92b5156839b9748adf05 (diff)
downloadffmpeg-9c5c348eefcef41b1d0e459348dadeeb731e8b59.tar.gz
configure: add filter_out() function
This adds a function to filter out words matching a pattern from a list. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 9d201b260627aacdb00e4a54622849aca11d85ee)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index cb4fe8807c..8f34e97314 100755
--- a/configure
+++ b/configure
@@ -321,6 +321,14 @@ filter(){
done
}
+filter_out(){
+ pat=$1
+ shift
+ for v; do
+ eval "case $v in $pat) ;; *) echo $v ;; esac"
+ done
+}
+
map(){
m=$1
shift