summaryrefslogtreecommitdiff
path: root/m4/clock_time.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/clock_time.m4')
-rw-r--r--m4/clock_time.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/clock_time.m4 b/m4/clock_time.m4
index 6cd7c6a3b..eabeba8b9 100644
--- a/m4/clock_time.m4
+++ b/m4/clock_time.m4
@@ -17,8 +17,8 @@ AC_DEFUN([gl_CLOCK_TIME],
# library, inducing unnecessary run-time overhead.
fetish_saved_libs=$LIBS
AC_SEARCH_LIBS(clock_gettime, [rt posix4],
- [LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
- test -z "$LIB_CLOCK_GETTIME" && LIB_CLOCK_GETTIME=])
+ [test "$ac_cv_search_clock_gettime" = "none required" ||
+ LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
AC_SUBST(LIB_CLOCK_GETTIME)
AC_CHECK_FUNCS(clock_gettime clock_settime)
LIBS=$fetish_saved_libs