X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=18314e2acc671997f1ff4628c096a92ad7e20250;hb=5c425a82faff16dde43e01eba19766d258f1b5ca;hp=a2fb6be87d3c38168b9235abdb31dce1091724ef;hpb=fda9988b164bac1a2fb13edb87b292bd0900facc;p=collectd.git diff --git a/configure.ac b/configure.ac index a2fb6be8..18314e2a 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 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] ) @@ -5756,7 +5762,7 @@ if test "x$with_libxmms" = "xyes"; then fi if test "x$with_libxmms" = "xyes"; then - SAVE_CPPFLAGS="$CFLAGS" + SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$with_xmms_cflags" AC_CHECK_HEADER([xmmsctrl.h],