X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.in;h=db0b083ce7aac113bbc10ab565796d505d403bb1;hb=7477d555a1dab3bee2db3eff26f2b2e5e5334956;hp=a3b2ab6c6c08a6bd3e3ab3743a88370e7fc8b7f0;hpb=67e4e517f58dac2a7b0e63b80256231480bfa59d;p=collectd.git diff --git a/configure.in b/configure.in index a3b2ab6c..db0b083c 100644 --- a/configure.in +++ b/configure.in @@ -931,6 +931,27 @@ if test "x$have_getmntent" = "xgen"; then [Define if the function getmntent exists. It's the version from libgen.]) fi +# Check for htonll +AC_MSG_CHECKING([if have htonll defined]) + + have_htonll="no" + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([ +#include +#include +#ifdef HAVE_INTTYPES_H +#include +#endif + ], [ + return htonll(0); + ]) + ], [ + have_htonll="yes" + AC_DEFINE(HAVE_HTONLL, 1, [Define if the function htonll exists.]) + ]) + +AC_MSG_RESULT([$have_htonll]) + # Check for structures AC_CHECK_MEMBERS([struct if_data.ifi_ibytes, struct if_data.ifi_opackets, struct if_data.ifi_ierrors], [AC_DEFINE(HAVE_STRUCT_IF_DATA, 1, [Define if struct if_data exists and is usable.])], @@ -3768,7 +3789,7 @@ AC_DEFUN( enable_plugin="yes" force="yes" else - enable_plugin="no" + enable_plugin="no (disabled on command line)" fi; fi ], [