diff --git a/configure.ac b/configure.ac index 03069f41fa5727f709a841d997d8556e528fb928..582fb61eeefa991dd01ba07f7a76bf30e32de8e3 100755 --- a/configure.ac +++ b/configure.ac @@ -268,6 +268,12 @@ AX_SUITESPARSE([],[echo "suitesparse not found" AX_EIGEN([],[echo "eigen not found" exit 206]) +##### Checking for rt + +AC_CHECK_LIB(rt, clock_gettime, [AC_DEFINE([HAVE_CLOCK_GETTIME],[],[Have clock time]) + OPT_LIBS="$OPT_LIBS -lrt" + ]) + ###### Checking for compiler flags -fext-numeric-literals my_save_cflags="$CFLAGS"