From e2f2ee3582731fd52e5b93a0a82fdf6f4156bce2 Mon Sep 17 00:00:00 2001 From: Руслан Ижбулатов Date: Mon, 8 Apr 2013 13:14:35 +0400 Subject: configure: Also check for clock_gettime in libpthread libwinpthreads provides POSIX time API. It also provides libpthread alias for itself, for compatibility, so that is what we will link with. Fixes #697550 --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1063828f0..34b7448b0 100644 --- a/configure.ac +++ b/configure.ac @@ -458,6 +458,11 @@ AC_CHECK_FUNCS(clock_gettime, [], [ AC_CHECK_LIB(rt, clock_gettime, [ AC_DEFINE(HAVE_CLOCK_GETTIME, 1) LIBS="$LIBS -lrt" + ], [ + AC_CHECK_LIB(pthread, clock_gettime, [ + AC_DEFINE(HAVE_CLOCK_GETTIME, 1) + LIBS="$LIBS -lpthread" + ]) ]) ]) -- cgit v1.2.3