From: Dave Hart Date: Mon, 2 Nov 2009 06:08:22 +0000 (+0000) Subject: [Bug 1364] clock_gettime() not detected, need -lrt on Debian 5.0.3. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fc43bb23e2114e4f89502ee5a3ded91c9480a73;p=thirdparty%2Fntp.git [Bug 1364] clock_gettime() not detected, need -lrt on Debian 5.0.3. bk: 4aee77567TSM73Fvc2Khfi7icT4law --- diff --git a/ChangeLog b/ChangeLog index 09a24ce4bd..b1889c7f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1364] clock_gettime() not detected, need -lrt on Debian 5.0.3. (4.2.5p239-RC) 2009/10/30 Released by Harlan Stenn * [Bug 1357] bogus assert from refclock_shm. * [Bug 1359] Debug message cleanup. diff --git a/configure.ac b/configure.ac index 04beef61f8..7725c923d8 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ AC_CONFIG_AUX_DIR([.]) # the date YYYYMMDD optionally with -HHMM if there is more than one # bump in a day. -ntp_configure_cache_version=20090503 +ntp_configure_cache_version=20091102 # When the cache version of config.cache and configure do not # match, NTP_CACHEVERSION will flush the cache. @@ -1198,7 +1198,9 @@ case "$host" in # this conditional will need to change. Maybe use AC_TRY_RUN # instead to try to set the time to itself and check errno. ;; - *) AC_CHECK_FUNCS(clock_gettime clock_settime) + *) + AC_SEARCH_LIBS([clock_gettime], [rt]) + AC_CHECK_FUNCS([clock_gettime clock_settime]) ;; esac AC_CHECK_FUNCS(daemon)