chiark / gitweb /
Use CLOCK_MONOTONIC for all our timing needs, when possible
[secnet.git] / configure.ac
index 471a6e77db56f726b675cdad6114732c200a4109..aceed9014346659261b9f92ef6e36edf583d369a 100644 (file)
@@ -137,6 +137,14 @@ else
     AC_MSG_WARN([Disabling IPv6 support])
 fi
 
+AC_CHECK_DECL([adns_if_monotonic],[
+    AC_DEFINE([USE_MONOTONIC],[1],[Use CLOCK_MONOTONIC and adns_if_monotonic])
+],[
+: dnl AC_MSG_WARN([Using non-monotonic clock, due to lack of adns_if_monotonic])
+],[AC_INCLUDES_DEFAULT
+#include <adns.h>
+])
+
 SUBDIRMK_MAKEFILES(common.make)
 
 AC_OUTPUT(,