Mercurial > hg > octave-kai > gnulib-hg
changeset 2065:e1a744db4db5
(jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
(for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 03 Jan 2000 19:58:09 +0000 |
parents | 13ca4ae7e0c2 |
children | 8e707880be9b |
files | m4/nanosleep.m4 |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/nanosleep.m4 +++ b/m4/nanosleep.m4 @@ -1,11 +1,15 @@ -#serial 1 +#serial 2 dnl From Jim Meyering. -dnl FIXME +dnl Check for the nanosleep function dnl 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]) + AC_CACHE_CHECK([whether nanosleep works], jm_cv_func_nanosleep_works, [AC_TRY_RUN([