X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=configure.ac;h=cba275441f581776b4a845be0983ba1f133e8bf8;hb=040bc32535c71473a2afc170f73c55b85d86cc93;hp=b0c4431121900d489245c55a58217a5f5c7d49ac;hpb=cb090cfe82ab160dc85a1d46ddf16bda56158336;p=chaz%2Ftar 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