summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-13 17:29:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-13 17:34:19 +0200
commit9331a2ee41d13d04e2eed077f1f934a62288ab01 (patch)
treebfe5ce62f4687fa00a943f35ef2d863dfb1cf182 /configure
parent8f5bb35f4004791a6eb69049103a1c6382cf6542 (diff)
configure: slightly more robust looking check for math functions.
I dont know on which system the prior check failed but an advanced linker on some platform might have optimized func() out as unreachable. Patch taken from http://floss.freebox.fr Author: unknown Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 284379463b..300852d83b 100755
--- a/configure
+++ b/configure
@@ -708,7 +708,7 @@ check_mathfunc(){
check_ld "$@" <<EOF && enable $func
#include <math.h>
float foo(float f) { return $func(f); }
-int main(void){ return 0; }
+int main(void){ return (int) foo; }
EOF
}