diff options
Diffstat (limited to 'gl/m4/getloadavg.m4')
-rw-r--r-- | gl/m4/getloadavg.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gl/m4/getloadavg.m4 b/gl/m4/getloadavg.m4 index 82437291..c1547c74 100644 --- a/gl/m4/getloadavg.m4 +++ b/gl/m4/getloadavg.m4 | |||
@@ -31,6 +31,10 @@ AC_CHECK_FUNCS(pstat_getdynamic) | |||
31 | AC_CHECK_LIB(kstat, kstat_open) | 31 | AC_CHECK_LIB(kstat, kstat_open) |
32 | test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes | 32 | test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes |
33 | 33 | ||
34 | # AIX has libperfstat which does not require root | ||
35 | AC_CHECK_LIB(perfstat, perfstat_cpu_total) | ||
36 | test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes | ||
37 | |||
34 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | 38 | # Some systems with -lutil have (and need) -lkvm as well, some do not. |
35 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | 39 | # On Solaris, -lkvm requires nlist from -lelf, so check that first |
36 | # to get the right answer into the cache. | 40 | # to get the right answer into the cache. |