From: Jim Meyering Date: Wed, 24 Apr 2002 07:49:00 +0000 (+0000) Subject: Check for these headers: locale.h unistd.h mach/mach.h fcntl.h. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2e6fc02c8b0b7afe4852e4e83881612667fee95;p=pspp Check for these headers: locale.h unistd.h mach/mach.h fcntl.h. Check for this function: setlocale. --- diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index 9116738e94..73c60c536d 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 @@ -12,6 +12,9 @@ undefine([AC_FUNC_GETLOADAVG]) AC_DEFUN([AC_FUNC_GETLOADAVG], [ac_have_func=no # yes means we've found a way to get the load average. +AC_CHECK_HEADERS(locale.h unistd.h mach/mach.h fcntl.h) +AC_CHECK_FUNCS(setlocale) + # By default, expect to find getloadavg.c in $srcdir/. ac_lib_dir_getloadavg=$srcdir # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.