From: Måns Rullgård Date: Wed, 10 Feb 2010 22:14:28 +0000 (+0000) Subject: Stricter check for math.h functions X-Git-Tag: v0.6~1374 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/33bd38dbd3f5d8c06c6229f6f404ba664027a618 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 --- diff --git a/configure b/configure index f324e17..b28b468 100755 --- a/configure +++ b/configure @@ -675,7 +675,8 @@ check_mathfunc(){ disable $func check_ld "$@" < -int main(void){ $func(0); return 0; } +float foo(float f) { return $func(f); } +int main(void){ return 0; } EOF }