[x264-devel] configure: Fix log2f misdetection on some systems

Anton Mitrofanov git at videolan.org
Mon Mar 11 20:24:01 CET 2019


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Thu Nov  8 22:01:54 2018 +0300| [d6af823959dc06f061e0a7b038dab83d9c1c9ea3] | committer: Henrik Gramner

configure: Fix log2f misdetection on some systems

Bug report by Dirk Fieldhouse.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=d6af823959dc06f061e0a7b038dab83d9c1c9ea3
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 07ba4490..3cf63e09 100755
--- 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
 



More information about the x264-devel mailing list