configure: add filter_out() function
authorMans Rullgard <mans@mansr.com>
Tue, 25 Jan 2011 14:44:07 +0000 (14:44 +0000)
committerMans Rullgard <mans@mansr.com>
Tue, 25 Jan 2011 20:32:08 +0000 (20:32 +0000)
This adds a function to filter out words matching a pattern
from a list.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index 70b18b3..51e1172 100755 (executable)
--- 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