# HG changeset patch # User Sebastien Decugis # Date 1216187807 -32400 # Node ID f5576d74ef5d2276a3769754e8bb84e69e76be66 # Parent c2f0ff9a5774c9759cb33fd347b8dd53d14c07c3 Add support for clock_gettime in the configure.ac file diff -r c2f0ff9a5774 -r f5576d74ef5d configure.ac --- a/configure.ac Tue Jul 15 17:26:58 2008 +0900 +++ b/configure.ac Wed Jul 16 14:56:47 2008 +0900 @@ -163,7 +163,8 @@ # When this is not provided by host, we provide a replacement function in the daemon. AC_CHECK_FUNC([ntohll], [AC_DEFINE([HAVE_NTOHLL], [1], [Defined if the ntohll function or macro is defined])]) - +# This is a POSIX function but sometimes in separate libraries +AC_SEARCH_LIBS([clock_gettime], [rt posix4], , [AC_MSG_ERROR([This package needs clock_gettime.])]) ####################### # Checks for system services