From: Stephen Hemminger Date: Thu, 28 May 2009 22:29:10 +0000 (-0700) Subject: [configure] Detect support for monotonic clock X-Git-Tag: frr-2.0-rc1~2288 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c4376c9d28f1282f502ed5279ee80ec5c4cb810d;p=matthieu%2Ffrr.git [configure] Detect support for monotonic clock Quagga has code to support monotonic clock to avoid issues where time of day changes. The support was incomplete since it was not being detected by autoconf. --- diff --git a/configure.ac b/configure.ac index 7cf30a80c6..c1f618248b 100755 --- a/configure.ac +++ b/configure.ac @@ -1321,6 +1321,16 @@ AC_TRY_COMPILE([#include AC_DEFINE(HAVE_RUSAGE,,rusage)], AC_MSG_RESULT(no)) +dnl -------------------------------------- +dnl checking for clock_time monotonic struct and call +dnl -------------------------------------- +AC_CHECK_LIB(rt, clock_gettime, +[AC_DEFINE(HAVE_MONOTONIC_CLOCK,, Have monotonic clock) + LIBS="$LIBS -lrt"] +) + + + dnl ------------------- dnl capabilities checks dnl -------------------