diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-01-28 13:49:35 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-01-28 13:49:35 -0600 |
commit | 7a1bdf05a3bc11e3d0e1e8778de29827eed31428 (patch) | |
tree | 9ae69d3674b75b25e13997d625b2bbe86ad45aca /community/autoconf2.13/getloadavg.patch | |
parent | b5b2b5a7d6a68565db720aed85aaf0a5135fc4da (diff) | |
download | aports-7a1bdf05a3bc11e3d0e1e8778de29827eed31428.tar.bz2 aports-7a1bdf05a3bc11e3d0e1e8778de29827eed31428.tar.xz |
community/autoconf2.13: fix test suite and add check
Diffstat (limited to 'community/autoconf2.13/getloadavg.patch')
-rw-r--r-- | community/autoconf2.13/getloadavg.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/autoconf2.13/getloadavg.patch b/community/autoconf2.13/getloadavg.patch new file mode 100644 index 0000000000..46f26d692f --- /dev/null +++ b/community/autoconf2.13/getloadavg.patch @@ -0,0 +1,36 @@ +From debian/patches/other-debian.patch. + +autoconf (2.13-24) unstable; urgency=low + * Fix test for getloadavg (Bug#84170). + -- Ben Pfaff <blp@gnu.org> Wed, 31 Jan 2001 19:12:03 -0500 + +--- autoconf-2.13/acspecific.m4 ++++ autoconf-2.13/acspecific.m4 +@@ -1477,14 +1477,19 @@ AC_SUBST(ALLOCA)dnl + AC_DEFUN(AC_FUNC_GETLOADAVG, + [ac_have_func=no # yes means we've found a way to get the load average. + +-# Some systems with -lutil have (and need) -lkvm as well, some do not. +-# On Solaris, -lkvm requires nlist from -lelf, so check that first +-# 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") +-# 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]) ++# Some systems have getloadavg without any extra libraries. ++AC_CHECK_FUNC(getloadavg, [ac_have_func=yes]) ++ ++if test $ac_have_func = no; then ++ # Some systems with -lutil have (and need) -lkvm as well, some do not. ++ # On Solaris, -lkvm requires nlist from -lelf, so check that first ++ # 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") ++ # 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]) ++fi + + if test $ac_have_func = no; then + # There is a commonly available library for RS/6000 AIX. |