[FFmpeg-cvslog] build: Fix logic of clock_gettime() check

Diego Biurrun git at videolan.org
Fri Oct 13 00:03:18 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Mar  6 19:35:12 2017 +0100| [003124ebf4a05f1347c74104216887ddd2e5aad4] | committer: Diego Biurrun

build: Fix logic of clock_gettime() check

We should only check for clock_gettime() if _POSIX_MONOTONIC_CLOCK is
available and do a full link check for clock_gettime() in all cases.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=003124ebf4a05f1347c74104216887ddd2e5aad4
---

 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 397d19c923..a8e3926b70 100755
--- a/configure
+++ b/configure
@@ -4572,8 +4572,8 @@ check_func  ${malloc_prefix}memalign            && enable memalign
 check_func  ${malloc_prefix}posix_memalign      && enable posix_memalign
 
 check_cpp_condition unistd.h "defined(_POSIX_MONOTONIC_CLOCK)" &&
-    check_func_headers time.h clock_gettime ||
-        check_lib clock_gettime time.h clock_gettime -lrt
+    { check_lib clock_gettime time.h clock_gettime ||
+      check_lib clock_gettime time.h clock_gettime -lrt; }
 
 check_func  fcntl
 check_func  fork



More information about the ffmpeg-cvslog mailing list