From 33bd38dbd3f5d8c06c6229f6f404ba664027a618 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Wed, 10 Feb 2010 22:14:28 +0000
Subject: [PATCH] Stricter check for math.h functions

GCC is sometimes able to optimise constant calls to these functions,
incorrectly indicating that they exist.  Unoptimised calls will then
fail to link.

Originally committed as revision 21749 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index f324e179291..b28b4685a16 100755
--- a/configure
+++ b/configure
@@ -675,7 +675,8 @@ check_mathfunc(){
     disable $func
     check_ld "$@" <<EOF && enable $func
 #include <math.h>
-int main(void){ $func(0); return 0; }
+float foo(float f) { return $func(f); }
+int main(void){ return 0; }
 EOF
 }
 
-- 
GitLab