OSDN Git Service

configure: do not quote arguments passed to filter{,_out} in check_ld.
authorAlexis Ballier <aballier@gentoo.org>
Wed, 17 Oct 2012 18:52:11 +0000 (15:52 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Oct 2012 21:28:50 +0000 (23:28 +0200)
This fixes the following error:
./configure: eval: line 417: syntax error near unexpected token `-lcdio_cdda'
[...]
Broken by 66a1ccd74 when doing, e.g., ./configure --enable-gpl --enable-libcdio.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 0a63aaf..70f3b8e 100755 (executable)
--- a/configure
+++ b/configure
@@ -769,8 +769,8 @@ check_ld(){
     log check_ld "$@"
     type=$1
     shift 1
-    flags=$(filter_out '-l*' "$@")
-    libs=$(filter '-l*' "$@")
+    flags=$(filter_out '-l*' $@)
+    libs=$(filter '-l*' $@)
     check_$type $($cflags_filter $flags) || return
     flags=$($ldflags_filter $flags)
     libs=$($ldflags_filter $libs)