From: Jim Meyering Date: Sat, 8 Nov 2003 13:24:12 +0000 (+0000) Subject: (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the X-Git-Tag: v5.1.0~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a70f678c6996c18424e29a86eb73fd7fd73069c5;p=thirdparty%2Fcoreutils.git (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the value, $ac_cv_search_nanosleep, if it's "none required". --- diff --git a/m4/nanosleep.m4 b/m4/nanosleep.m4 index bfe8d57457..fd5fd92fc6 100644 --- a/m4/nanosleep.m4 +++ b/m4/nanosleep.m4 @@ -11,8 +11,10 @@ AC_DEFUN([jm_FUNC_NANOSLEEP], # Solaris 2.5.1 needs -lposix4 to get the nanosleep function. # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. - AC_SEARCH_LIBS(nanosleep, [rt posix4], [LIB_NANOSLEEP=$ac_cv_search_nanosleep]) - AC_SUBST(LIB_NANOSLEEP) + AC_SEARCH_LIBS([nanosleep], [rt posix4], + [test "$ac_cv_search_nanosleep" = "none required" || + LIB_NANOSLEEP=$ac_cv_search_nanosleep]) + AC_SUBST([LIB_NANOSLEEP]) AC_CACHE_CHECK([whether nanosleep works], jm_cv_func_nanosleep_works,