[01/10] configure: remove filter_cppflags

Message ID 1342796217-5280-1-git-send-email-mans@mansr.com
State Committed
Commit cd52ec95bb2bf4c5dd9787451800e5dbe0a4b949
Headers show

Commit Message

Mans Rullgard July 20, 2012, 2:56 p.m.
This is not used and the current design would not work properly
if mixing tools needing different filters.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 configure | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Luca Barbato July 20, 2012, 10:19 p.m. | #1
On 07/20/2012 04:56 PM, Mans Rullgard wrote:
> This is not used and the current design would not work properly
> if mixing tools needing different filters.
> 
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
>  configure | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Ok.

Patch

diff --git a/configure b/configure
index 79d728e..3b1b6b9 100755
--- a/configure
+++ b/configure
@@ -585,7 +585,7 @@  prepend(){
 }
 
 add_cppflags(){
-    append CPPFLAGS $($filter_cppflags "$@")
+    append CPPFLAGS "$@"
 }
 
 add_cflags(){
@@ -676,7 +676,6 @@  check_code(){
 
 check_cppflags(){
     log check_cppflags "$@"
-    set -- $($filter_cppflags "$@")
     check_cc "$@" <<EOF && append CPPFLAGS "$@"
 int x;
 EOF
@@ -757,7 +756,7 @@  check_cpp_condition(){
     header=$1
     condition=$2
     shift 2
-    check_cpp $($filter_cppflags "$@") <<EOF
+    check_cpp "$@" <<EOF
 #include <$header>
 #if !($condition)
 #error "unsatisfied condition: $condition"
@@ -1949,7 +1948,6 @@  fi
 
 filter_asflags=echo
 filter_cflags=echo
-filter_cppflags=echo
 
 if   $cc -v 2>&1 | grep -q '^gcc.*LLVM'; then
     cc_type=llvm_gcc