From 112652962c23053bde143cca7cbee553e20e15d4 Mon Sep 17 00:00:00 2001 From: octo Date: Tue, 11 Apr 2006 22:22:12 +0000 Subject: [PATCH] Added checks for `IOKit/ps/IOPowerSources.h' and `IOKit/ps/IOPSKeys.h' Added output wether or not `apache' plugin is built. Renamed `iokit' to `apple_sensors' in the summary. --- configure.in | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 8fd2b489..a56c48b1 100644 --- a/configure.in +++ b/configure.in @@ -162,6 +162,18 @@ AC_CHECK_HEADERS(CoreFoundation/CoreFoundation.h) AC_CHECK_HEADERS(IOKit/IOKitLib.h) AC_CHECK_HEADERS(IOKit/IOTypes.h) +# For the battery plugin +AC_CHECK_HEADERS(IOKit/ps/IOPowerSources.h, [], [], +[ +#if HAVE_IOKIT_IOKITLIB_H +# include +#endif +#if HAVE_IOKIT_IOTYPES_H +# include +#endif +]) +AC_CHECK_HEADERS(IOKit/ps/IOPSKeys.h) + # For load module AC_CHECK_HEADERS(sys/loadavg.h) @@ -1049,13 +1061,14 @@ Configuration: heartbeat . . . . . $collectd_heartbeat seconds Modules: + apache . . . . . . $enable_apache + apple_sensors . . . $enable_apple_sensors battery . . . . . . $enable_battery cpu . . . . . . . . $enable_cpu cpufreq . . . . . . $enable_cpufreq df . . . . . . . . $enable_df disk . . . . . . . $enable_disk hddtemp . . . . . . $enable_hddtemp - iokit . . . . . . . $enable_iokit load . . . . . . . $enable_load memory . . . . . . $enable_memory mysql . . . . . . . $enable_mysql -- 2.30.2