Commit 1475815a authored by Alexis Ballier's avatar Alexis Ballier Committed by Michael Niedermayer

Apply again [916352f2] that got lost in the merges.

Do not quote second argument to filter{,_out} in check_ld. We want to keep/remove all the space-separated words matching the -l* pattern, not keep everything if the whole argument begins with -l and remove it otherwise.

This also fixes errors like:
./configure: eval: line 418: syntax error near unexpected token `-l*'
./configure: eval: line 418: `case  in -l*) ;; *) echo  ;; esac'
when run with ./configure --enable-openal
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 099786a6
...@@ -768,8 +768,8 @@ check_ld(){ ...@@ -768,8 +768,8 @@ check_ld(){
log check_ld "$@" log check_ld "$@"
type=$1 type=$1
shift 1 shift 1
flags=$(filter_out '-l*' "$@") flags=$(filter_out '-l*' $@)
libs=$(filter '-l*' "$@") libs=$(filter '-l*' $@)
check_$type $($cflags_filter $flags) || return check_$type $($cflags_filter $flags) || return
flags=$($ldflags_filter $flags) flags=$($ldflags_filter $flags)
libs=$($ldflags_filter $libs) libs=$($ldflags_filter $libs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment