From 96e4aabe0b9a46ea9da4955a10c774a8e58fe677 Mon Sep 17 00:00:00 2001 From: Mikkel Kamstrup Erlandsen Date: Wed, 10 Oct 2018 12:43:06 +0200 Subject: build: check if clock_gettime() requires -lrt on old GNU systems --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 46a725e..d0c8201 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,9 @@ AC_TYPE_UINT16_T AC_TYPE_UINT32_T AC_TYPE_UINT8_T +# Check if clock_gettime requires -lrt (old GNU systems) +AC_SEARCH_LIBS([clock_gettime],[rt posix4]) + # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC -- cgit v1.1-32-gdbae