mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
[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.
This commit is contained in:
parent
8f5abac1c3
commit
c4376c9d28
10
configure.ac
10
configure.ac
|
@ -1321,6 +1321,16 @@ AC_TRY_COMPILE([#include <sys/resource.h>
|
||||||
AC_DEFINE(HAVE_RUSAGE,,rusage)],
|
AC_DEFINE(HAVE_RUSAGE,,rusage)],
|
||||||
AC_MSG_RESULT(no))
|
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 -------------------
|
||||||
dnl capabilities checks
|
dnl capabilities checks
|
||||||
dnl -------------------
|
dnl -------------------
|
||||||
|
|
Loading…
Reference in a new issue