X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=3b932ca3bfcd67a349c68f9b534a98033b74579c;hp=63cfca77db933d0644752264728d2dcb7370c686;hb=9717b1a55d60d992c16e66e2ae5bdfb42f80aca8;hpb=79a94204db8de144bf5bd84159afde444df9e0a4 diff --git a/configure.ac b/configure.ac index 63cfca77..3b932ca3 100644 --- a/configure.ac +++ b/configure.ac @@ -592,6 +592,14 @@ if test "x$ac_system" = "xLinux"; then fi if test "x$have_capability" = "xyes"; then + AC_CHECK_DECL([CAP_IS_SUPPORTED], + [have_capability="yes"], + [have_capability="no (CAP_IS_SUPPORTED not found)"], + [[#include ]] + ) + fi + + if test "x$have_capability" = "xyes"; then AC_DEFINE([HAVE_CAPABILITY], [1], [Define to 1 if you have cap_get_proc() (-lcap).]) fi