From: Jim Meyering Date: Thu, 23 Dec 1999 11:55:58 +0000 (+0000) Subject: Check for clock_gettime (moved from fileutils/configure.in) X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be9ab0a6e53f6ef286c37b42a5eb562708d712c5;p=pspp Check for clock_gettime (moved from fileutils/configure.in) Check for gettimeofday. --- diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 30ce55c590..2dd2d818b1 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -63,6 +63,13 @@ AC_DEFUN(jm_MACROS, dnl ...: warning: AC_TRY_RUN called without default to allow cross compiling AC_FUNC_SETVBUF_REVERSED + # used by sleep and shred + # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. + # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. + AC_SEARCH_LIBS(clock_gettime, [rt posix4]) + AC_CHECK_FUNCS(clock_gettime) + AC_CHECK_FUNCS(gettimeofday) + AM_FUNC_GETLINE if test $am_cv_func_working_getline != yes; then AC_CHECK_FUNCS(getdelim)