summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-09-05 13:13:50 +0200
committerDiego Biurrun <diego@biurrun.de>2016-09-06 18:13:00 +0200
commitec903058447ad5be34d89533962e9ae1aa1c78f7 (patch)
tree296b39b7956edbcfa232b323e26fb7d5b552bdd2 /configure
parent3aa9d37d03da3c9b482d19b3988659287815280e (diff)
configure: Simplify clock_gettime() test
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index ea2b131a34..7ad920f4be 100755
--- a/configure
+++ b/configure
@@ -4472,7 +4472,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_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