+2005-04-08 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * configure.in: Use it.
+
+ * aclocal.m4 (WGET_POSIX_CLOCK): Check whether -lrt is needed to
+ use POSIX clock functions like clock_gettime.
+
2005-04-08 Hrvoje Niksic <hniksic@xemacs.org>
* Makefile.in ($(srcdir)/stamp-h.in): Don't attempt to run
])
dnl Check for nanosleep. For nanosleep to work on Solaris, we must
-dnl link with -lt (recently) or with -lposix (older releases).
+dnl link with -lrt (recently) or with -lposix4 (older releases).
AC_DEFUN([WGET_NANOSLEEP], [
AC_CHECK_FUNCS(nanosleep, [], [
])
])
+AC_DEFUN([WGET_POSIX_CLOCK], [
+ AC_CHECK_FUNCS(clock_gettime, [], [
+ AC_CHECK_LIB(rt, clock_gettime)
+ ])
+])
+
dnl Check whether we need to link with -lnsl and -lsocket, as is the
dnl case on e.g. Solaris.