summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-20 11:04:50 +0100
committerClément Bœsch <u@pkh.me>2017-03-20 11:04:50 +0100
commit100026bed6515b9f2d6e81c9290166a3bd14be7f (patch)
tree00e77d2d85c566ede553abf17b1ac151939b25ca /configure
parent38343651a82f42de8f30b6f0028c9dfe241134d8 (diff)
parentec903058447ad5be34d89533962e9ae1aa1c78f7 (diff)
downloadffmpeg-streaming-100026bed6515b9f2d6e81c9290166a3bd14be7f.zip
ffmpeg-streaming-100026bed6515b9f2d6e81c9290166a3bd14be7f.tar.gz
Merge commit 'ec903058447ad5be34d89533962e9ae1aa1c78f7'
* commit 'ec903058447ad5be34d89533962e9ae1aa1c78f7': configure: Simplify clock_gettime() test nanosleep check also updated. Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index c6eba84..4eb116b 100755
--- a/configure
+++ b/configure
@@ -5580,7 +5580,8 @@ check_func ${malloc_prefix}posix_memalign && enable posix_memalign
check_func access
check_func_headers stdlib.h arc4random
-check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
+check_func_headers time.h clock_gettime ||
+ { check_lib2 time.h clock_gettime -lrt && LIBRT="-lrt"; }
check_func fcntl
check_func fork
check_func gethrtime
@@ -5593,7 +5594,8 @@ check_func mkstemp
check_func mmap
check_func mprotect
# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
-check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
+check_func_headers time.h nanosleep ||
+ { check_lib2 time.h nanosleep -lrt && LIBRT="-lrt"; }
check_func sched_getaffinity
check_func setrlimit
check_struct "sys/stat.h" "struct stat" st_mtim.tv_nsec -D_BSD_SOURCE
OpenPOWER on IntegriCloud