X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=5ac33dc79f1f26d7d43ce316e38f8b5afd128c53;hb=bfb85f1840f3672518979dd4b52f012fc08b4f88;hp=add1556bf478389032bd08f9cb5fab4740584caa;hpb=051a9ad7ca3be1238b38c6aacdcd280606d945ce;p=collectd.git diff --git a/configure.ac b/configure.ac index add1556b..5ac33dc7 100644 --- a/configure.ac +++ b/configure.ac @@ -3950,7 +3950,13 @@ if test "x$with_libnetsnmpagent" = "xyes"; then ) AC_CHECK_LIB([netsnmpagent], [init_agent], - [with_libnetsnmpagent="yes"], + [ + # libnetsnmp can be built without without mib loading support + AC_CHECK_LIB([netsnmp], [get_tree], + [with_libnetsnmpagent="yes"], + [with_libnetsnmpagent="no (libnetsnmp doesn't support mib loading)"] + ) + ], [with_libnetsnmpagent="no (libnetsnmpagent not found)"], [$libnetsnmphelpers] )