]> git.pld-linux.org Git - packages/net-snmp.git/blame - net-snmp-netlink.patch
- prep for netlink optimizations for snmpnetstat
[packages/net-snmp.git] / net-snmp-netlink.patch
CommitLineData
89293676
ER
1--- net-snmp-5.4.2.1-dev/configure.in 2009-01-22 00:49:25.233782506 +0200
2+++ net-snmp-5.4.2.1-dev/configure.in 2009-01-22 20:00:37.030183514 +0200
3@@ -310,6 +310,12 @@
4 AC_ARG_ENABLE(efence,,
5 AC_MSG_ERROR([ Invalid option. Use --with-efence/--without-efence instead ]) )
6
7+AC_ARG_WITH(nl,
8+[ --with-nl Look for and use libnl (linux only).],
9+ use_nl="$withval")
10+AC_ARG_ENABLE(nl,,
11+ AC_MSG_ERROR([ Invalid option. Use --with-nl/--without-nl instead ]) )
12+
13 tryrsaref=no
14 AC_ARG_WITH(rsaref,
15 [ --with-rsaref=PATH Look for librsaref in PATH/lib.],
16@@ -2664,6 +2670,21 @@
17 AC_CHECK_LIB(efence, EF_Exit)
18 fi
19
20+if test "x$use_nl" != "xno"; then
21+ case $target_os in
22+ linux*) # Check for libnl (linux)
23+ AC_CHECK_HEADERS(netlink/netlink.h,
24+ AC_CHECK_LIB(nl, nl_connect, [
25+ AC_DEFINE_UNQUOTED(HAVE_NL, "1", [have libnl])
26+ LIBNL_LIBS="-lnl"
27+ LIBNL="Yes"
28+ ])
29+ )
30+ ;;
31+ esac
32+fi
33+
34+
35 # Checks for libraries.
36 # AC_CHECK_LIB(des, main)
37 # AC_CHECK_LIB(m, asin)
This page took 0.07193 seconds and 4 git commands to generate.