From f6be77cada6b19c9611b26d449e1677009388f3a Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 11 Nov 2003 15:01:13 +0000 Subject: [PATCH] (tar_save_LIBS): Bugfix. Thanks Adrian Bunk for reporting. --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b0c4431..cba2754 100644 --- a/configure.ac +++ b/configure.ac @@ -152,8 +152,10 @@ jm_XSTRTOUMAX # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. tar_save_LIBS=$LIBS LIB_CLOCK_GETTIME= - AC_SEARCH_LIBS(clock_gettime, [rt posix4], - [LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) + AC_SEARCH_LIBS(clock_gettime, [rt posix4]) + case "$ac_cv_search_clock_gettime" in + -l*) LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;; + esac AC_SUBST(LIB_CLOCK_GETTIME) AC_CHECK_FUNCS(clock_gettime) LIBS=$tar_save_LIBS -- 2.44.0