summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-10-31 19:48:59 +0100
committerDiego Biurrun <diego@biurrun.de>2013-11-01 22:05:20 +0100
commit23157d72b565e0228fec97f1eb059d4f8021a260 (patch)
treec4aa1020d2585fd9d23b9752f5be1efb78739868 /configure
parentd1c229cdbc07ef8eb703d68d1c5b509baee85245 (diff)
configure: Split test_cflags function off from check_cflags
This is useful to test flags without directly adding them to CFLAGS.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index f72db76313..549e04cdf2 100755
--- a/configure
+++ b/configure
@@ -779,14 +779,19 @@ int x;
EOF
}
-check_cflags(){
- log check_cflags "$@"
+test_cflags(){
+ log test_cflags "$@"
set -- $($cflags_filter "$@")
- check_cc "$@" <<EOF && append CFLAGS "$@"
+ check_cc "$@" <<EOF
int x;
EOF
}
+check_cflags(){
+ log check_cflags "$@"
+ test_cflags "$@" && add_cflags "$@"
+}
+
test_ldflags(){
log test_ldflags "$@"
check_ld "$@" <<EOF