configure: fix filter() function when matching multiple patterns

This makes comma-separated patters to --disable-decoder and friends
work correctly with POSIX-compliant shells.

Originally committed as revision 19688 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2009-08-23 15:39:39 +00:00
parent bce7b696a2
commit 98ef60791d

2
configure vendored
View File

@ -295,7 +295,7 @@ filter(){
pat=$1
shift
for v; do
case "$v" in $pat) echo "$v" ;; esac
eval "case $v in $pat) echo $v ;; esac"
done
}