From: Remi Gacogne Date: Wed, 15 May 2019 16:35:37 +0000 (+0200) Subject: Fix the detection of snmp_select_info2() X-Git-Tag: rec-4.2.0-rc1~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7826%2Fhead;p=thirdparty%2Fpdns.git 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. --- diff --git a/m4/pdns_with_net_snmp.m4 b/m4/pdns_with_net_snmp.m4 index 2da80c75fc..d4cfcfac68 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