From f0703928e457a65802b2f0e66e7590a5f55f2d38 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 18 Aug 2006 07:34:06 +0000 Subject: [PATCH] * gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Reverse sense of test for CLOCK_MONOTONIC. Otherwise, linking a gethrxtime-using program with $(LIB_GETHRXTIME) could fail due to unresolved clock_gettime. Reported by Gabor Z. Papp. --- m4/ChangeLog | 7 +++++++ m4/gethrxtime.m4 | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 979eed2..d184e99 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,10 @@ +2006-08-18 Jim Meyering + + * gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Reverse sense of test for + CLOCK_MONOTONIC. Otherwise, linking a gethrxtime-using program + with $(LIB_GETHRXTIME) could fail due to unresolved clock_gettime. + Reported by Gabor Z. Papp. + 2006-08-17 Paul Eggert * ChangeLog: Add copyright notice. diff --git a/m4/gethrxtime.m4 b/m4/gethrxtime.m4 index 2b6fe36..1277a78 100644 --- a/m4/gethrxtime.m4 +++ b/m4/gethrxtime.m4 @@ -1,5 +1,5 @@ # gethrxtime.m4 serial 3 -dnl Copyright (C) 2005 Free Software Foundation, Inc. +dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -67,7 +67,7 @@ AC_DEFUN([gl_PREREQ_GETHRXTIME], ], gl_cv_have_CLOCK_MONOTONIC=yes, gl_cv_have_CLOCK_MONOTONIC=no)]) - if test $gl_cv_have_CLOCK_MONOTONIC = yes; then + if test $gl_cv_have_CLOCK_MONOTONIC = no; then LIB_GETHRXTIME=$LIB_CLOCK_GETTIME fi AC_SUBST([LIB_GETHRXTIME]) -- 2.7.4