X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/6b210fdf04f67df393b5a0cd1222136b36c2eda7..e8d9f0df0cdb7f0af118665aacc36ed5036b10d4:/configure.ac diff --git a/configure.ac b/configure.ac index 60f82b9..d144ebf 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,7 @@ AC_CHECK_HEADERS([stdint.h]) 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 @@ -121,6 +122,19 @@ 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). AM_PATH_PYTHON([2.4],, [:])