X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgetloadavg.m4;h=412d0fe84e46f4e7c9a46a7b5e5009ce1b9963dc;hb=30b5040b9ab015c4d64206b4ce482917a151a395;hp=9680420009ea3191e02eed72bb662ada6b41b960;hpb=d30b38a75f551054922811ead835433176b3fb23;p=gnulib.git diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index 968042000..412d0fe84 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 @@ -1,4 +1,4 @@ -#serial 3 +#serial 4 AC_DEFUN(AM_FUNC_GETLOADAVG, [ac_have_func=no # yes means we've found a way to get the load average. @@ -40,13 +40,16 @@ if test $ac_cv_func_getloadavg = yes; then AC_DEFINE(HAVE_GETLOADAVG) ac_have_func=yes else - AC_DEFINE(C_GETLOADAVG) + AC_DEFINE(C_GETLOADAVG, 1, [Define if using getloadavg.c.]) # Figure out what our getloadavg.c needs. ac_have_func=no AC_CHECK_HEADER(sys/dg_sys_info.h, [ac_have_func=yes; AC_DEFINE(DGUX) AC_CHECK_LIB(dgc, dg_sys_info)]) + AC_CHECK_HEADER(locale.h) + AC_CHECK_FUNCS(setlocale) + # We cannot check for , because Solaris 2 does not use dwarf (it # uses stabs), but it is still SVR4. We cannot check for because # Irix 4.0.5F has the header but not the library.