From 1418de013708aaa1e49473abad0cc7ece63f1add Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 15 May 2019 18:35:37 +0200 Subject: [PATCH] Fix the detection of snmp_select_info2() We did not properly check whether snmp_select_info2() was available, resulting in this function not being used even when supported. --- m4/pdns_with_net_snmp.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/m4/pdns_with_net_snmp.m4 b/m4/pdns_with_net_snmp.m4 index 2da80c75f..d4cfcfac6 100644 --- a/m4/pdns_with_net_snmp.m4 +++ b/m4/pdns_with_net_snmp.m4 @@ -11,7 +11,10 @@ AC_DEFUN([PDNS_WITH_NET_SNMP], [ AS_IF([test "x$with_net_snmp" = "xyes" -o "x$with_net_snmp" = "xauto"], [ AC_CHECK_PROG([NET_SNMP_CFLAGS], [net-snmp-config], [`net-snmp-config --cflags`]) AC_CHECK_PROG([NET_SNMP_LIBS], [net-snmp-config], [`net-snmp-config --netsnmp-agent-libs`]) - AC_CHECK_DECLS([snmp_select_info2], [ : ], [ : ], + AC_CHECK_DECLS([snmp_select_info2], [ + AC_DEFINE([HAVE_SNMP_SELECT_INFO2], [1], [define to 1 if snmp_select_info2 is available.]) + ], + [ : ], [AC_INCLUDES_DEFAULT #include #include -- 2.40.0