From 4afb5b7cc665c984e6c979614ea1cf7065780bfe Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 30 Oct 2004 15:04:46 +0000 Subject: better check for posix timers CVS patchset: 7092 CVS date: 2004/10/30 15:04:46 --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e8951b28c..28427ccaf 100644 --- a/configure.ac +++ b/configure.ac @@ -257,7 +257,6 @@ dnl WIN32 platform AC_SUBST(WIN32_CPPFLAGS) AM_CONDITIONAL(WIN32, test x$SYS = "xmingw32") - dnl --------------------------------------------- dnl dynamic linker dnl --------------------------------------------- @@ -443,6 +442,16 @@ AC_SUBST(ZLIB_INCLUDES) AC_SUBST(ZLIB_LIBS) AC_SUBST(ZLIB_LIBS_CONFIG) +dnl --------------------------------------------- +dnl check posix timers +dnl --------------------------------------------- + +AC_CHECK_LIB(rt, clock_getres, + [RT_LIBS="-lrt" + AC_DEFINE(HAVE_POSIX_TIMERS,1, + [Define this if you have POSIX timers.])], + AC_MSG_RESULT([*** no POSIX timers available.])) +AC_SUBST(RT_LIBS) dnl --------------------------------------------- dnl Check for OpenGL & [GLut | GLU] -- cgit v1.2.3