X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=configure.ac;h=135a0bd9affc6c74c404d8a2c1ce38fe4bd80479;hb=e065f3eec9be99d82da855bf3da38d8e86752fef;hp=bf83b916b61d923a0813141bd839f842d207bc5c;hpb=624d59c6b2fb500f65d3e30e44da5e8c8d40f63a;p=paraslash.git diff --git a/configure.ac b/configure.ac index bf83b916..135a0bd9 100644 --- a/configure.ac +++ b/configure.ac @@ -247,6 +247,18 @@ if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; AC_MSG_ERROR([fatal: buggy snprintf() detected]) fi]) AX_FUNC_SNPRINTF() +################################################################## clock_gettime +clock_gettime_lib= +AC_CHECK_LIB([c], [clock_gettime], [clock_gettime_lib=c], [ + AC_CHECK_LIB([rt], [clock_gettime], [clock_gettime_lib=rt], [], []) +]) +if test -n "$clock_gettime_lib"; then + AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [ + define to 1 if clock_gettime() is supported]) +fi +if test "$clock_gettime_lib" = "rt"; then + AC_SUBST(clock_gettime_ldflags, -lrt) +fi ########################################################################### osl have_osl=yes OLD_CPPFLAGS="$CPPFLAGS"