configure: add cleanws() function

This function removes leading and trailing spaces and collapses
multiple spaces into one.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit bb7a22b584)
oldabi
Mans Rullgard 14 years ago committed by Michael Niedermayer
parent 11ab1e409f
commit 8429368d22
  1. 4
      configure

4
configure vendored

@ -313,6 +313,10 @@ sh_quote(){
echo "$v" echo "$v"
} }
cleanws(){
echo "$@" | sed 's/^ *//;s/ */ /g;s/ *$//'
}
filter(){ filter(){
pat=$1 pat=$1
shift shift

Loading…
Cancel
Save