From: Ben Elliston Date: Wed, 29 Sep 1999 01:03:25 +0000 (+0000) Subject: 1999-09-29 Ben Elliston X-Git-Tag: trunk-pre-merge-trunk-into-experimental-1999-10-01 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccaec82d1ff5d0e21e060ab293468c42ef7fd3ce;p=thirdparty%2Fautoconf.git 1999-09-29 Ben Elliston * acspecific.m4 (AC_FUNC_GETLOADAVG): Check for the kstat_open() function in libkstat (on systems such as Solaris). This family of functions is preferred since they don't require setgid permissions to use them. Fix for autoconf/65. --- diff --git a/ChangeLog b/ChangeLog index 2c602a99..14900c69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-09-29 Ben Elliston + + * acspecific.m4 (AC_FUNC_GETLOADAVG): Check for the kstat_open() + function in libkstat (on systems such as Solaris). This family of + functions is preferred since they don't require setgid permissions + to use them. Fix for autoconf/65. + 1999-09-27 Ben Elliston * autoscan.pl (scan_files): Emit an AC_PROG_CC invocation to diff --git a/acspecific.m4 b/acspecific.m4 index 3e5f56a1..77a0ba11 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -1494,6 +1494,7 @@ AC_DEFUN(AC_FUNC_GETLOADAVG, # to get the right answer into the cache. AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS") AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS") +AC_CHECK_LIB(kstat, kstat_open) # Check for the 4.4BSD definition of getloadavg. AC_CHECK_LIB(util, getloadavg, [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes]) diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 3e5f56a1..77a0ba11 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -1494,6 +1494,7 @@ AC_DEFUN(AC_FUNC_GETLOADAVG, # to get the right answer into the cache. AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS") AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS") +AC_CHECK_LIB(kstat, kstat_open) # Check for the 4.4BSD definition of getloadavg. AC_CHECK_LIB(util, getloadavg, [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes])