summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-08-24 18:14:47 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-09-03 02:38:03 +0200
commitebef9f5a56d7df91e010a177a80cfc8dbe394305 (patch)
treec508c8775aa760085a599d3d65e7ca24bc0225e8 /configure
parent65e78a2e4b111627c0ebdf2c9baec95e5e21560d (diff)
downloadffmpeg-streaming-ebef9f5a56d7df91e010a177a80cfc8dbe394305.zip
ffmpeg-streaming-ebef9f5a56d7df91e010a177a80cfc8dbe394305.tar.gz
time: Use clock_gettime if the monotonic clock is available
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 22b699f..af0128a 100755
--- a/configure
+++ b/configure
@@ -1432,6 +1432,7 @@ MATH_FUNCS="
SYSTEM_FUNCS="
aligned_malloc
+ clock_gettime
closesocket
CommandLineToArgvW
CoTaskMemFree
@@ -4038,6 +4039,9 @@ check_func_headers malloc.h _aligned_malloc && enable aligned_malloc
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_func_headers time.h clock_gettime -lrt && add_extralibs -lrt; }
+
check_func fcntl
check_func fork
check_func gethrtime
OpenPOWER on IntegriCloud