Check whether a real librt is present and use it if necessary

This commit is contained in:
Ben "root" Anderson
2015-01-27 17:04:33 -06:00
parent c586db8f5d
commit 465db6c4fe
+5
View File
@@ -202,6 +202,11 @@ if test "$with_prof" = "yes"; then
test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS="$LDFLAGS -pg"
fi
dnl Usually in libc, but not always(?)
if test "$unix" = "yes"; then
AC_SEARCH_LIBS(clock_gettime, rt,, AC_ERROR([clock_gettime() not available?]))
fi
SM_OPENGL
SM_X11
GL_CFLAGS="$GL_CFLAGS $XCFLAGS"