AC_DEFUN(AM_FUNC_GETLOADAVG,
[ac_have_func=no # yes means we've found a way to get the load average.
AC_DEFUN(AM_FUNC_GETLOADAVG,
[ac_have_func=no # yes means we've found a way to get the load average.
[ac_have_func=yes; AC_DEFINE(DGUX, 1, [FIXME])
AC_CHECK_LIB(dgc, dg_sys_info)])
[ac_have_func=yes; AC_DEFINE(DGUX, 1, [FIXME])
AC_CHECK_LIB(dgc, dg_sys_info)])
AC_CHECK_FUNCS(setlocale)
# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
AC_CHECK_FUNCS(setlocale)
# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
if test $ac_cv_func_getloadavg_setgid = yes; then
AC_CACHE_CHECK(group of /dev/kmem, ac_cv_group_kmem,
if test $ac_cv_func_getloadavg_setgid = yes; then
AC_CACHE_CHECK(group of /dev/kmem, ac_cv_group_kmem,
ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
# If we got an error (system does not support symlinks), try without -L.
test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
# If we got an error (system does not support symlinks), try without -L.
test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`