configure: Properly escape arguments in filter/filter_out helper functions

The arguments may contain '$', which gets interpreted by the shell.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Luca Barbato 2017-04-06 18:14:29 +02:00
parent 3889dfde9c
commit 44aafa3325
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -433,7 +433,7 @@ filter(){
pat=$1 pat=$1
shift shift
for v; do for v; do
eval "case $v in $pat) printf '%s ' $v ;; esac" eval "case '$v' in $pat) printf '%s ' '$v' ;; esac"
done done
} }
@ -441,7 +441,7 @@ filter_out(){
pat=$1 pat=$1
shift shift
for v; do for v; do
eval "case $v in $pat) ;; *) printf '%s ' $v ;; esac" eval "case '$v' in $pat) ;; *) printf '%s ' '$v' ;; esac"
done done
} }