From badc63464cbd64606c6dff9ea561a787d072fd5f Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Wed, 7 Jan 2009 11:47:52 -0800 Subject: libdrm: add autoconf check for clock_gettime Should be more portable this way. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ccc58ef7..11d238cf 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,13 @@ AC_DEFUN([LIBDRM_CC_TRY_FLAG], [ AC_MSG_RESULT([$libdrm_cc_flag]) ]) +dnl We use clock_gettime to check for timeouts in drmWaitVBlank + +AC_CHECK_FUNCS([clock_gettime], [CLOCK_LIB=], + [AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_LIB=-lrt], + [AC_MSG_ERROR([Couldn't find clock_gettime])])]) +AC_SUBST([CLOCK_LIB]) + dnl Use lots of warning flags with with gcc and compatible compilers dnl Note: if you change the following variable, the cache is automatically -- cgit v1.2.3