From: Michael Niedermayer Date: Tue, 13 Sep 2011 15:29:49 +0000 (+0200) Subject: configure: slightly more robust looking check for math functions. X-Git-Tag: android-x86-4.4-r1~16246 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9331a2ee41d13d04e2eed077f1f934a62288ab01;p=android-x86%2Fexternal-ffmpeg.git 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 --- diff --git a/configure b/configure index 284379463b..300852d83b 100755 --- a/configure +++ b/configure @@ -708,7 +708,7 @@ check_mathfunc(){ check_ld "$@" < float foo(float f) { return $func(f); } -int main(void){ return 0; } +int main(void){ return (int) foo; } EOF }