1
--- net-snmp-5.4.1~dfsg.orig/configure.in
2
+++ net-snmp-5.4.1~dfsg/configure.in
4
AC_CHECK_FUNC(kvm_getswapinfo, AC_DEFINE(HAVE_KVM_GETSWAPINFO, 1, [Define to 1 if you have the `kvm_getswapinfo' function.]),
5
AC_CHECK_LIB(kvm, kvm_getswapinfo, AC_DEFINE(HAVE_KVM_GETSWAPINFO, 1, [Define to 1 if you have the `kvm_getswapinfo' function.])
7
+AC_CHECK_FUNC(nlist, AC_DEFINE(HAVE_NLIST, 1, [Define to 1 if you have the `nlist' function.]),
8
+ AC_CHECK_LIB(kvm, nlist, AC_DEFINE(HAVE_NLIST, 1, [Define to 1 if you have the `nlist' function.])
10
if test "x${_libkvm}" != "x"; then
11
AC_DEFINE(HAVE_LIBKVM, 1, [Define to 1 if you have the `kvm' library (-lkvm).])
12
LAGENTLIBS="$LAGENTLIBS ${_libkvm}"
1
--- net-snmp-5.4.3~dfsg.orig/configure.in
2
+++ net-snmp-5.4.3~dfsg/configure.in
4
AC_DEFINE(HAVE_LIBKVM, 1, [Define to 1 if you have the `kvm' library (-lkvm).])
5
LAGENTLIBS="$LAGENTLIBS ${_libkvm}"
7
+AC_CHECK_FUNC(nlist, AC_DEFINE(HAVE_NLIST, 1, [Define to 1 if you have the `nlist' function.]),
8
+ AC_CHECK_LIB(bsd, nlist, AC_DEFINE(HAVE_NLIST, 1, [Define to 1 if you have the `nlist' function.])
9
+ LAGENTLIBS="$LAGENTLIBS bsd"))
11
# DYNAMIC MODULE SUPPORT
12
AC_CHECK_FUNC(dlopen, AC_DEFINE(HAVE_DLOPEN, 1, [Define to 1 if you have the `dlopen' function.]),