From: Florian Forster Date: Sat, 25 Nov 2023 22:47:47 +0000 (+0100) Subject: gmond plugin: Look for RPC headers in /usr/include/tirpc. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=859882b1234c81ac454534e8bf8b1bd87c696066;p=thirdparty%2Fcollectd.git gmond plugin: Look for RPC headers in /usr/include/tirpc. glibc removed the SunRPC headers, and the replacement headers are in a different location. Try and look for them there. --- diff --git a/configure.ac b/configure.ac index 234391a0a..78b18eced 100644 --- a/configure.ac +++ b/configure.ac @@ -2633,6 +2633,25 @@ if test "x$with_libganglia" = "xyes"; then fi fi +AC_CHECK_HEADERS([rpc/types.h], + [have_rpc_types_h="yes"], + [have_rpc_types_h="no"] +) +AS_UNSET([ac_cv_header_rpc_types_h]) +if test "x$have_rpc_types_h" = "xno"; then + # SunRPC has been removed from glibc. + # Replacement headers are in the "tirpc" subdirectory. + SAVE_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc" + + AC_CHECK_HEADERS([rpc/types.h], + [GANGLIA_CPPFLAGS="$GANGLIA_CPPFLAGS -I/usr/include/tirpc"], + [with_libganglia="no (rpc/types.h not found)"] + ) + + CPPFLAGS="$SAVE_CPPFLAGS" +fi + SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $GANGLIA_CPPFLAGS"