]> granicus.if.org Git - libx264/commitdiff
configure: Fix log2f misdetection on some systems
authorAnton Mitrofanov <BugMaster@narod.ru>
Thu, 8 Nov 2018 19:01:54 +0000 (22:01 +0300)
committerHenrik Gramner <henrik@gramner.com>
Sun, 23 Dec 2018 19:13:43 +0000 (20:13 +0100)
Bug report by Dirk Fieldhouse.

configure

index 07ba4490f4be6699549c8ac2f2745a0512ccea77..3cf63e09861c04fc38fc1bd5fa629b5090556a07 100755 (executable)
--- a/configure
+++ b/configure
@@ -1067,7 +1067,7 @@ if [ "$thread" = "posix" ]; then
 fi
 [ "$thread" != "no" ] && define HAVE_THREAD
 
-if cc_check 'math.h' '' 'log2f(2);' ; then
+if cc_check 'math.h' '' 'volatile float x = 2; return log2f(x);' ; then
     define HAVE_LOG2F
 fi