chiark / gitweb /
autoconf: Check for adns_if_monotonic and define USE_MONOTONIC
[secnet.git] / configure
index 152c8ed24a97d24ddf74a60ffa670c0aa7d94133..7cf44213db46f41742d4d17078188055feefa231 100755 (executable)
--- a/configure
+++ b/configure
@@ -4219,6 +4219,43 @@ else
 $as_echo "$as_me: WARNING: Disabling IPv6 support" >&2;}
 fi
 
+ac_fn_c_check_decl "$LINENO" "adns_if_monotonic" "ac_cv_have_decl_adns_if_monotonic" "
+          # include <sys/types.h>
+          # include <sys/stat.h>
+          # include <stdlib.h>
+          # include <stddef.h>
+          # include <string.h>
+          # include <inttypes.h>
+          # include <stdint.h>
+          # include <unistd.h>
+
+          # include <sys/types.h>
+          # include <sys/stat.h>
+          # include <stdlib.h>
+          # include <stddef.h>
+          # include <string.h>
+          # include <inttypes.h>
+          # include <stdint.h>
+          # include <unistd.h>
+
+
+#include <adns.h>
+
+"
+if test "x$ac_cv_have_decl_adns_if_monotonic" = xyes; then :
+
+
+$as_echo "#define USE_MONOTONIC 1" >>confdefs.h
+
+
+else
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using non-monotonic clock, due to lack of adns_if_monotonic" >&5
+$as_echo "$as_me: WARNING: Using non-monotonic clock, due to lack of adns_if_monotonic" >&2;}
+
+fi
+
+
 
 
   _SUBDIRMK_MAKEFILES="$_SUBDIRMK_MAKEFILES common.make"