dnl Libraries.
mdw_ORIG_LIBS=$LIBS LIBS=$MLIB_LIBS
+AC_SEARCH_LIBS([sqrt], [m])
AC_SEARCH_LIBS([socket], [socket])
AC_SEARCH_LIBS([gethostbyname], [nsl resolv])
MLIB_LIBS=$LIBS LIBS=$mdw_ORIG_LIBS
esac
AM_CONDITIONAL([WITH_ADNS], [test "$use_adns" = yes])
+dnl--------------------------------------------------------------------------
+dnl Timers.
+
+AC_CHECK_HEADERS([linux/perf_event.h])
+
+mdw_ORIG_LIBS=$LIBS LIBS=$MLIB_LIBS
+AC_SEARCH_LIBS([clock_gettime], [rt])
+MLIB_LIBS=$LIBS LIBS=$mdw_ORIG_LIBS
+if test "$ac_cv_search_clock_gettime" != no; then
+ AC_DEFINE([HAVE_CLOCK_GETTIME], [1],
+ [Define if you have the \`clock_gettime' function.])
+fi
+
dnl--------------------------------------------------------------------------
dnl Python (used for testing).