]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- prep for netlink optimizations for snmpnetstat
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 22 Jan 2009 22:57:23 +0000 (22:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    net-snmp-netlink.patch -> 1.1

net-snmp-netlink.patch [new file with mode: 0644]

diff --git a/net-snmp-netlink.patch b/net-snmp-netlink.patch
new file mode 100644 (file)
index 0000000..b55733f
--- /dev/null
@@ -0,0 +1,37 @@
+--- net-snmp-5.4.2.1-dev/configure.in  2009-01-22 00:49:25.233782506 +0200
++++ net-snmp-5.4.2.1-dev/configure.in  2009-01-22 20:00:37.030183514 +0200
+@@ -310,6 +310,12 @@
+ AC_ARG_ENABLE(efence,,
+       AC_MSG_ERROR([ Invalid option. Use --with-efence/--without-efence instead ]) )
++AC_ARG_WITH(nl,
++[  --with-nl                   Look for and use libnl (linux only).],
++      use_nl="$withval")
++AC_ARG_ENABLE(nl,,
++      AC_MSG_ERROR([ Invalid option. Use --with-nl/--without-nl instead ]) )
++
+ tryrsaref=no
+ AC_ARG_WITH(rsaref,
+ [  --with-rsaref=PATH              Look for librsaref in PATH/lib.],
+@@ -2664,6 +2670,21 @@
+     AC_CHECK_LIB(efence, EF_Exit)
+ fi
++if test "x$use_nl" != "xno"; then
++    case $target_os in
++    linux*) # Check for libnl (linux)
++      AC_CHECK_HEADERS(netlink/netlink.h,
++          AC_CHECK_LIB(nl, nl_connect, [
++              AC_DEFINE_UNQUOTED(HAVE_NL, "1", [have libnl])
++              LIBNL_LIBS="-lnl"
++              LIBNL="Yes"
++          ])
++      )
++    ;;
++    esac
++fi
++
++
+ # Checks for libraries.
+ # AC_CHECK_LIB(des, main)
+ # AC_CHECK_LIB(m, asin)
This page took 0.687129 seconds and 4 git commands to generate.