1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 3.8.2)
3 AC_CONFIG_SRCDIR(src/collectd.c)
4 AC_CONFIG_HEADERS(src/config.h)
5 AM_INIT_AUTOMAKE(dist-bzip2)
8 AC_PREFIX_DEFAULT("/opt/collectd")
11 # Checks for programs.
18 AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes")
22 AC_LIBLTDL_CONVENIENCE
28 AC_CONFIG_SUBDIRS(libltdl src/libconfig)
31 # Checks for header files.
36 AC_CHECK_HEADERS(stdint.h)
37 AC_CHECK_HEADERS(errno.h)
38 AC_CHECK_HEADERS(math.h)
39 AC_CHECK_HEADERS(syslog.h)
40 AC_CHECK_HEADERS(fcntl.h)
41 AC_CHECK_HEADERS(signal.h)
42 AC_CHECK_HEADERS(assert.h)
43 AC_CHECK_HEADERS(sys/types.h)
44 AC_CHECK_HEADERS(sys/socket.h)
45 AC_CHECK_HEADERS(sys/select.h)
46 AC_CHECK_HEADERS(netdb.h)
47 AC_CHECK_HEADERS(arpa/inet.h)
48 AC_CHECK_HEADERS(sys/resource.h)
49 AC_CHECK_HEADERS(sys/param.h)
52 AC_CHECK_HEADERS(netinet/in_systm.h, [], [],
57 AC_CHECK_HEADERS(netinet/in.h, [], [],
61 #if HAVE_NETINET_IN_SYSTM_H
62 # include <netinet/in_systm.h>
65 AC_CHECK_HEADERS(netinet/ip.h, [], [],
69 #if HAVE_NETINET_IN_SYSTM_H
70 # include <netinet/in_systm.h>
73 # include <netinet/in.h>
76 AC_CHECK_HEADERS(netinet/ip_icmp.h, [], [],
80 #if HAVE_NETINET_IN_SYSTM_H
81 # include <netinet/in_systm.h>
84 # include <netinet/in.h>
87 # include <netinet/ip.h>
90 AC_CHECK_HEADERS(netinet/ip_var.h, [], [],
94 #if HAVE_NETINET_IN_SYSTM_H
95 # include <netinet/in_systm.h>
98 # include <netinet/in.h>
100 #if HAVE_NETINET_IP_H
101 # include <netinet/ip.h>
104 AC_CHECK_HEADERS(netinet/ip6.h, [], [],
109 # include <sys/types.h>
111 #if HAVE_NETINET_IN_SYSTM_H
112 # include <netinet/in_systm.h>
114 #if HAVE_NETINET_IN_H
115 # include <netinet/in.h>
118 AC_CHECK_HEADERS(netinet/icmp6.h, [], [],
123 # include <sys/types.h>
125 #if HAVE_NETINET_IN_SYSTM_H
126 # include <netinet/in_systm.h>
128 #if HAVE_NETINET_IN_H
129 # include <netinet/in.h>
131 #if HAVE_NETINET_IP6_H
132 # include <netinet/ip6.h>
137 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h)
140 AC_CHECK_HEADERS(sys/loadavg.h)
143 AC_CHECK_HEADERS(utmp.h)
144 AC_CHECK_HEADERS(utmpx.h)
147 AC_CHECK_HEADERS(grp.h pwd.h sys/ucred.h)
148 AC_CHECK_HEADERS(ctype.h)
149 AC_CHECK_HEADERS(limits.h)
150 AC_CHECK_HEADERS(sys/quota.h)
151 AC_CHECK_HEADERS(xfs/xqm.h)
153 # For mount interface
154 AC_CHECK_HEADERS(fs_info.h)
155 AC_CHECK_HEADERS(fshelp.h)
156 AC_CHECK_HEADERS(paths.h)
157 AC_CHECK_HEADERS(mntent.h)
158 AC_CHECK_HEADERS(mnttab.h)
159 AC_CHECK_HEADERS(sys/fstyp.h)
160 AC_CHECK_HEADERS(sys/fs_types.h)
161 AC_CHECK_HEADERS(sys/mntent.h)
162 AC_CHECK_HEADERS(sys/mnttab.h)
163 AC_CHECK_HEADERS(sys/mount.h)
164 AC_CHECK_HEADERS(sys/statfs.h)
165 AC_CHECK_HEADERS(sys/statvfs.h)
166 AC_CHECK_HEADERS(sys/vfs.h)
167 AC_CHECK_HEADERS(sys/vfstab.h)
169 # For debugging interface (variable number of arguments)
170 AC_CHECK_HEADERS(stdarg.h)
172 dnl Checking for libraries
176 # Checks for typedefs, structures, and compiler characteristics.
185 # Checks for library functions.
187 AC_PROG_GCC_TRADITIONAL
188 AC_CHECK_FUNCS(gettimeofday select strdup strtol)
189 AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket))
190 AC_CHECK_FUNCS(getaddrinfo getnameinfo)
191 AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
192 AC_CHECK_FUNCS(strncasecmp strcasecmp)
193 AC_CHECK_FUNCS(openlog syslog closelog)
196 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
199 AC_CHECK_FUNCS(statfs statvfs)
202 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
205 AC_CHECK_FUNCS(getutent getutxent)
208 AC_CHECK_FUNCS(quotactl)
209 AC_CHECK_FUNCS(getgrgid getpwuid)
211 # For mount interface
212 AC_CHECK_FUNCS(getfsent getvfsent listmntent)
213 AC_CHECK_FUNCS(getfsstat)
215 # Check for different versions of `getmntent' here..
217 if test "x$ac_cv_lib_sun_getmntent" = "xyes"
219 AC_DEFINE(HAVE_SUN_GETMNTENT, 1,
220 [Define if the function getmntent exists. It's the version from libsun.])
222 if test "x$ac_cv_lib_seq_getmntent" = "xyes"
224 AC_DEFINE(HAVE_SEQ_GETMNTENT, 1,
225 [Define if the function getmntent exists. It's the version from libseq.])
227 if test "x$ac_cv_lib_gen_getmntent" = "xyes"
229 AC_DEFINE(HAVE_GEN_GETMNTENT, 1,
230 [Define if the function getmntent exists. It's the version from libgen.])
233 if test "x$ac_cv_func_getmntent" = "xyes"; then
235 CFLAGS="-Wall -Werror $CFLAGS"
236 AC_CACHE_CHECK([whether getmntent takes one argument],
239 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
240 #include "$srcdir/src/utils_mount.h"]],
241 [[(void)getmntent((FILE *)NULL);]]
243 [fu_cv_getmntent1=yes],
244 [fu_cv_getmntent1=no]
247 if test "x$fu_cv_getmntent1" = "xno"; then
248 AC_CACHE_CHECK([whether getmntent takes two arguments],
251 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
252 #include "$srcdir/src/utils_mount.h"]],
253 [[(void)getmntent((FILE *)NULL,
254 (struct mnttab *)NULL);]]
256 [fu_cv_getmntent2=yes],
257 [fu_cv_getmntent2=no]
263 if test "x$fu_cv_getmntent1" = "xyes"; then
264 AC_DEFINE(HAVE_GETMNTENT1,
266 [Define if there is a function named getmntent
267 for reading the list of mounted filesystems, and
268 that function takes a single argument. (4.3BSD,
269 SunOS, HP-UX, Dynix, Irix, Linux)]
272 if test "x$fu_cv_getmntent2" = "xyes"; then
273 AC_DEFINE(HAVE_GETMNTENT2,
275 [Define if there is a function named getmntent
276 for reading the list of mounted filesystems, and
277 that function takes two arguments. (SVR4)]
281 AC_MSG_CHECKING([for kernel type ($host_os)])
284 AC_DEFINE([KERNEL_LINUX], [], [True if program is to be compiled for a Linux kernel])
288 AC_DEFINE([KERNEL_SOLARIS], [], [True if program is to be compiled for a Solaris kernel])
294 AC_MSG_RESULT([$ac_system])
297 AC_CHECK_LIB(socket, socket,
299 AC_DEFINE(HAVE_LIBSOCKET, 1, [Define to 1 if you have the 'socket' library (-lsocket).])
301 [with_libsocket="no"])
302 AM_CONDITIONAL(BUILD_WITH_LIBSOCKET, test "x$with_libsocket" = "xyes")
305 AC_CHECK_LIB(resolv, res_search,
307 AC_DEFINE(HAVE_LIBRESOLV, 1, [Define to 1 if you have the 'resolv' library (-lresolv).])
309 [with_libresolv="no"])
310 AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
312 m4_divert_once([HELP_WITH], [
313 collectd additional packages:])
315 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
316 AC_ARG_WITH(rrdtool, [AS_HELP_STRING([--with-rrdtool@<:@=PREFIX@:>@], [Path to rrdtool.])],
317 [ if test "x$withval" != "xno" && test "x$withval" != "xyes"
319 LDFLAGS="$LDFLAGS -L$withval/lib"
320 CPPFLAGS="$CPPFLAGS -I$withval/include"
323 ], [with_rrdtool="yes"])
324 if test "x$with_rrdtool" = "xyes"
326 AC_CHECK_LIB(rrd, rrd_update,
328 AC_DEFINE(HAVE_LIBRRD, 1, [Define to 1 if you have the rrd library (-lrrd).])
330 [with_rrdtool="no (librrd not found)"], [-lm])
332 if test "x$with_rrdtool" = "xyes"
334 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no (rrd.h not found)"])
336 if test "x$with_rrdtool" = "xyes"
342 AC_DEFINE_UNQUOTED(COLLECT_RRDTOOL, [$collect_rrdtool],
343 [Wether or not to use rrdtool library])
344 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
346 #AC_ARG_WITH(pth, [AS_HELP_STRING([--with-pth=@<:@=PREFIX@:>@], [Path to pth (experimental).]),
347 #[ if test "x$withval" != "xno" && test "x$withval" != "xyes"
349 # LDFLAGS="$LDFLAGS -L$withval/lib"
350 # CPPFLAGS="$CPPFLAGS -I$withval/include"
354 #if test "x$with_pth" = "xyes"
356 # AC_CHECK_LIB(pth, pth_init,, [with_pth="no (libpth not found)"], [])
358 #if test "x$with_pth" = "xyes"
360 # AC_CHECK_HEADERS(pth.h,, [with_pth="no (pth.h not found)"])
362 #if test "x$with_pth" = "xyes"
368 #AC_DEFINE_UNQUOTED(COLLECT_PTH, [$collect_pth],
369 # [Wether or not to use pth (portable threads) library])
370 #AM_CONDITIONAL(BUILD_WITH_PTH, test "x$with_pth" = "xyes")
372 if test "$ac_system" = "Solaris"
376 with_kstat="no (Solaris only)"
378 if test "x$with_kstat" = "xyes"
380 AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (libkstat not found)"])
382 if test "x$with_kstat" = "xyes"
384 AC_CHECK_LIB(devinfo, di_init)
385 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
387 if test "x$with_kstat" = "xyes"
393 AC_DEFINE_UNQUOTED(COLLECT_KSTAT, [$collect_kstat],
394 [Wether or not to use kstat library (Solaris)])
395 AM_CONDITIONAL(BUILD_WITH_KSTAT, test "x$with_kstat" = "xyes")
397 AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
399 if test "x$withval" != "xno" && test "x$withval" != "xyes"
401 LDFLAGS="$LDFLAGS -L$withval/lib"
402 CPPFLAGS="$CPPFLAGS -I$withval/include"
403 with_libstatgrab="yes"
407 if test "x$ac_system" == "xunknown"
409 with_libstatgrab="yes"
411 with_libstatgrab="no"
414 if test "x$with_libstatgrab" = "xyes"
416 AC_CHECK_LIB(devstat, getdevs)
417 AC_CHECK_LIB(kvm, kvm_getargv)
418 AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (libstatgrab not found)"])
420 if test "x$with_libstatgrab" = "xyes"
422 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
424 if test "x$with_libstatgrab" = "xyes"
426 collect_libstatgrab=1
428 collect_libstatgrab=0
430 AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
431 [Wether or not to use statgrab library])
432 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
434 AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])],
436 if test "x$withval" != "xno" && test "x$withval" != "xyes"
438 LDFLAGS="$LDFLAGS -L$withval/lib"
439 CPPFLAGS="$CPPFLAGS -I$withval/include"
440 with_lm_sensors="yes"
444 if test "x$ac_system" = "xLinux"
446 with_lm_sensors="yes"
451 if test "x$with_lm_sensors" = "xyes"
453 AC_CHECK_LIB(sensors, sensors_init,
455 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
457 [with_lm_sensors="no (libsensors not found)"])
459 if test "x$with_lm_sensors" = "xyes"
461 AC_CHECK_HEADERS(sensors/sensors.h,
463 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
465 [with_lm_sensors="no (sensors/sensors.h not found)"])
467 if test "x$with_lm_sensors" = "xyes"
473 AC_DEFINE_UNQUOTED(COLLECT_LM_SENSORS, [$collect_lm_sensors],
474 [Wether or not to use sensors library])
475 AM_CONDITIONAL(BUILD_WITH_LM_SENSORS, test "x$with_lm_sensors" = "xyes")
477 AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to libmysql.])],
479 if test "x$withval" != "xno" && test "x$withval" != "xyes"
481 LDFLAGS="$LDFLAGS -L$withval/lib"
482 CPPFLAGS="$CPPFLAGS -I$withval/include"
489 if test "x$with_libmysql" = "xyes"
491 AC_CHECK_LIB(mysqlclient, mysql_init,
493 AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1, [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
494 ], [with_libmysql="no (libmysql not found)"])
496 if test "x$with_libmysql" = "xyes"
498 AC_CHECK_HEADERS(mysql/mysql.h,
500 AC_DEFINE(HAVE_MYSQL_MYSQL_H, 1, [Define to 1 if you have the <mysql/mysql.h> header file.])
501 ], [with_libmysql="no (mysql/mysql.h not found)"])
503 if test "x$with_libmysql" = "xyes"
509 AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libmysql],
510 [Wether or not to use mysql library])
511 AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libmysql" = "xyes")
513 # Define `step' and `hearbeat' values..
514 declare -i collectd_step=10
515 declare -i collectd_heartbeat=25
516 AC_ARG_WITH(step, [AS_HELP_STRING([--with-step=SECONDS], [Interval in which plugins are queried.])],
518 if test "x$withval" != "xno" -a "x$withval" != "xyes"
520 declare -i tmp_collectd_step="$withval"
521 if test $tmp_collectd_step -gt 0
523 collectd_step=$tmp_collectd_step
524 let "collectd_heartbeat=$collectd_step*2"
528 AC_ARG_WITH(heartbeat, [AS_HELP_STRING([--with-heartbeat=SECONDS], [Heartbeat of the DS in generated RRD files.])],
530 if test "x$withval" != "xno" -a "x$withval" != "xyes"
532 declare -i tmp_collectd_heartbeat="$withval"
533 if test $tmp_collectd_heartbeat -gt 0
535 collectd_heartbeat=$tmp_collectd_heartbeat
540 if test $collectd_step -ne 10
542 AC_DEFINE_UNQUOTED(COLLECTD_STEP, "$collectd_step", [Interval in which plugins are queried.])
544 if test $collectd_heartbeat -ne 25
546 AC_DEFINE_UNQUOTED(COLLECTD_HEARTBEAT, "$collectd_heartbeat", [Interval in which plugins are queried.])
550 # Check for enabled/disabled features
553 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
554 # ------------------------------------------------------------
556 m4_define([my_toupper], [m4_translit([$1], m4_defn([m4_cr_letters]), m4_defn([m4_cr_LETTERS]))])
561 m4_if([$1], [], [AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 1st argument must not be empty])])dnl
566 m4_define([EnDis],[disabled])dnl
567 m4_define([YesNo],[no])dnl
573 m4_define([EnDis],[enabled])dnl
574 m4_define([YesNo],[yes])dnl
577 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 2nd argument must be either enable or disable])dnl
581 m4_if([$3], [feature], [],
585 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 3rd argument must be either feature or disable])dnl
591 AS_HELP_STRING([--$2-$1], [$2 $4 (EnDis by def)]),
593 enable_$1='[YesNo]'dnl
595 if test "x$enable_$1" = "xno"
599 if test "x$enable_$1" = "xyes"
603 AC_MSG_NOTICE([please specify either --enable-$1 or --disable-$1; enabling $1.])
608 AC_DEFINE_UNQUOTED([COLLECT_]my_toupper([$1]), [$collectd_$1], [wether or not to enable $3 $4])
609 AM_CONDITIONAL([BUILD_]my_toupper([$3])[_]my_toupper([$1]), [test "x$enable_$1" = "xyes"])dnl
611 )# AC_COLLECTD(name, enable/disable, info-text, feature/module)
613 m4_divert_once([HELP_ENABLE], [
615 AC_COLLECTD([debug], [enable], [feature], [debugging])
616 AC_COLLECTD([daemon], [disable], [feature], [daemon mode])
618 m4_divert_once([HELP_ENABLE], [
620 AC_COLLECTD([battery], [disable], [module], [battery statistics])
621 AC_COLLECTD([cpu], [disable], [module], [cpu usage statistics])
622 AC_COLLECTD([cpufreq], [disable], [module], [system cpu frequency statistics])
623 AC_COLLECTD([disk], [disable], [module], [disk/partition statistics])
624 AC_COLLECTD([df], [disable], [module], [df statistics])
625 AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
626 AC_COLLECTD([hddtemp], [disable], [module], [hdd temperature statistics])
627 AC_COLLECTD([load], [disable], [module], [system load statistics])
628 AC_COLLECTD([memory], [disable], [module], [memory statistics])
629 AC_COLLECTD([mysql], [disable], [module], [mysql statistics])
630 AC_COLLECTD([nfs], [disable], [module], [nfs statistics])
631 AC_COLLECTD([ping], [disable], [module], [ping statistics])
632 AC_COLLECTD([processes], [disable], [module], [processes statistics])
633 AC_COLLECTD([sensors], [disable], [module], [lm_sensors statistics])
634 AC_COLLECTD([serial], [disable], [module], [serial statistics])
635 AC_COLLECTD([swap], [disable], [module], [swap statistics])
636 AC_COLLECTD([tape], [disable], [module], [tape statistics])
637 AC_COLLECTD([traffic], [disable], [module], [system traffic statistics])
638 AC_COLLECTD([users], [disable], [module], [user count statistics])
639 AC_COLLECTD([vserver], [disable], [module], [vserver statistics])
640 AC_COLLECTD([wireless], [disable], [module], [wireless link statistics])
642 #m4_divert_once([HELP_ENABLE], [
644 #AC_ARG_ENABLE(cpu, AC_HELP_STRING([--disable-cpu], [Disable CPU usage statistics]),, [enable_cpu="yes"])
645 #if test "x$enable_cpu" != "xno"
647 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$have_sysctlbyname" = "xyes"
654 #if test "x$enable_cpu" = "xno"
656 # AC_DEFINE(COLLECT_CPU, 0, [Wether or not to collect CPU usage statistics])
658 #AM_CONDITIONAL(BUILD_MODULE_CPU, test "x$enable_cpu" = "xyes")
660 #AC_ARG_ENABLE(cpufreq, AC_HELP_STRING([--disable-cpufreq], [Disable system cpu frequency statistics]),, [enable_cpufreq="yes"])
661 #if test "x$enable_cpufreq" != "xno"
663 # if test "x$ac_system" = "xLinux"
665 # enable_cpufreq="yes"
667 # enable_cpufreq="no"
670 #if test "x$enable_cpufreq" = "xno"
672 # AC_DEFINE(COLLECT_CPUFREQ, 0, [Wether or not to collect cpu frequency statistics])
674 #AM_CONDITIONAL(BUILD_MODULE_CPUFREQ, test "x$enable_cpufreq" = "xyes")
676 #AC_ARG_ENABLE(disk, AC_HELP_STRING([--disable-disk], [Disable disk/partition statistics]),, [enable_disk="yes"])
677 #if test "x$enable_disk" != "xno"
679 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes"
686 #if test "x$enable_disk" = "xno"
688 # AC_DEFINE(COLLECT_DISK, 0, [Wether or not to collect diskstats])
690 #AM_CONDITIONAL(BUILD_MODULE_DISK, test "x$enable_disk" = "xyes")
692 #AC_ARG_ENABLE(hddtemp, AC_HELP_STRING([--disable-hddtemp], [Disable hdd temperature statistics]),, [enable_hddtemp="yes"])
693 #if test "x$enable_hddtemp" = "xno"
695 # AC_DEFINE(COLLECT_HDDTEMP, 0, [Wether or not to collect hdd temperature statistics])
697 #AM_CONDITIONAL(BUILD_MODULE_HDDTEMP, test "x$enable_hddtemp" = "xyes")
699 #AC_ARG_ENABLE(load, AC_HELP_STRING([--disable-load], [Disable system load statistics]),, [enable_load="yes"])
700 #if test "x$enable_load" != "xno"
702 # if test "x$have_getloadavg" = "xyes" -o "x$ac_system" = "xLinux" -o "x$with_libstatgrab" = "xyes"
709 #if test "x$enable_load" = "xno"
711 # AC_DEFINE(COLLECT_LOAD, 0, [Wether or not to collect system load statistics])
713 #AM_CONDITIONAL(BUILD_MODULE_LOAD, test "x$enable_load" = "xyes")
715 #AC_ARG_ENABLE(memory, AC_HELP_STRING([--disable-memory], [Disable memory statistics]),, [enable_memory="yes"])
716 #if test "x$enable_memory" != "xno"
718 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
720 # enable_memory="yes"
725 #if test "x$enable_memory" = "xno"
727 # AC_DEFINE(COLLECT_MEMORY, 0, [Wether or not to collect memory statistics])
729 #AM_CONDITIONAL(BUILD_MODULE_MEMORY, test "x$enable_memory" = "xyes")
731 #AC_ARG_ENABLE(nfs, AC_HELP_STRING([--disable-nfs], [Disable nfs statistics]),, [enable_nfs="yes"])
732 #if test "x$enable_nfs" != "xno"
734 # if test "x$ac_system" = "xLinux"
741 #if test "x$enable_nfs" = "xno"
743 # AC_DEFINE(COLLECT_NFS, 0, [Wether or not to collect nfs statistics])
745 #AM_CONDITIONAL(BUILD_MODULE_NFS, test "x$enable_nfs" = "xyes")
747 #AC_ARG_ENABLE(ping, AC_HELP_STRING([--disable-ping], [Disable ping statistics]),, [enable_ping="yes"])
748 #if test "x$enable_ping" != "xno"
752 #if test "x$enable_ping" = "xno"
754 # AC_DEFINE(COLLECT_PING, 0, [Wether or not to collect ping statistics])
756 #AM_CONDITIONAL(BUILD_MODULE_PING, test "x$enable_ping" = "xyes")
758 #AC_ARG_ENABLE(processes, AC_HELP_STRING([--disable-processes], [Disable processes statistics]),, [enable_processes="yes"])
759 #if test "x$enable_processes" != "xno"
761 # if test "x$ac_system" = "xLinux"
763 # enable_processes="yes"
765 # enable_processes="no"
768 #if test "x$enable_processes" = "xno"
770 # AC_DEFINE(COLLECT_PROCESSES, 0, [Wether or not to collect processes statistics])
772 #AM_CONDITIONAL(BUILD_MODULE_PROCESSES, test "x$enable_processes" = "xyes")
774 ##AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
776 #AC_ARG_ENABLE(sensors, AC_HELP_STRING([--disable-sensors], [Disable lm_sensors statistics]),, [enable_sensors=$with_lm_sensors])
777 #if test "x$enable_sensors" != "xno"
779 # if test "x$with_lm_sensors" = "xyes"
781 # enable_sensors="yes"
783 # enable_sensors="no"
786 #if test "x$enable_sensors" = "xno"
788 # AC_DEFINE(COLLECT_SENSORS, 0, [Wether or not to collect lm_sensors statistics])
790 #AM_CONDITIONAL(BUILD_MODULE_SENSORS, test "x$enable_sensors" = "xyes")
792 #AC_ARG_ENABLE(serial, AC_HELP_STRING([--disable-serial], [Disable serial statistics]),, [enable_serial="yes"])
793 #if test "x$enable_serial" != "xno"
795 # if test "x$ac_system" = "xLinux"
797 # enable_serial="yes"
802 #if test "x$enable_serial" = "xno"
804 # AC_DEFINE(COLLECT_SERIAL, 0, [Wether or not to collect serial statistics])
806 #AM_CONDITIONAL(BUILD_MODULE_SERIAL, test "x$enable_serial" = "xyes")
808 #AC_ARG_ENABLE(swap, AC_HELP_STRING([--disable-swap], [Disable swap statistics]),, [enable_swap="yes"])
809 #if test "x$enable_swap" != "xno"
811 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
818 #if test "x$enable_swap" = "xno"
820 # AC_DEFINE(COLLECT_SWAP, 0, [Wether or not to collect swap statistics])
822 #AM_CONDITIONAL(BUILD_MODULE_SWAP, test "x$enable_swap" = "xyes")
824 #AC_ARG_ENABLE(tape, AC_HELP_STRING([--disable-tape], [Disable tape statistics]),, [enable_tape="yes"])
825 #if test "x$enable_tape" != "xno"
827 # if test "x$with_kstat" = "xyes"
834 #if test "x$enable_tape" = "xno"
836 # AC_DEFINE(COLLECT_TAPE, 0, [Wether or not to collect tape statistics])
838 #AM_CONDITIONAL(BUILD_MODULE_TAPE, test "x$enable_tape" = "xyes")
840 #AC_ARG_ENABLE(traffic, AC_HELP_STRING([--disable-traffic], [Disable system traffic statistics]),, [enable_traffic="yes"])
841 #if test "x$enable_traffic" != "xno"
843 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
845 # enable_traffic="yes"
847 # enable_traffic="no"
850 #if test "x$enable_traffic" = "xno"
852 # AC_DEFINE(COLLECT_TRAFFIC, 0, [Wether or not to collect network traffic statistics])
854 #AM_CONDITIONAL(BUILD_MODULE_TRAFFIC, test "x$enable_traffic" = "xyes")
856 #AC_COLLECTD([users], [disable], [module], [user count statistics])
858 AC_OUTPUT(Makefile src/libconfig/Makefile src/liboping/Makefile src/Makefile)
864 librrd . . . . . . $with_rrdtool
865 lm_sensors . . . . $with_lm_sensors
866 libstatgrab . . . . $with_libstatgrab
867 libkstat . . . . . $with_kstat
868 libmysql . . . . . $with_libmysql
871 debug . . . . . . . $enable_debug
872 daemon mode . . . . $enable_daemon
873 step . . . . . . . $collectd_step seconds
874 heartbeat . . . . . $collectd_heartbeat seconds
877 battery . . . . . . $enable_battery
878 cpu . . . . . . . . $enable_cpu
879 cpufreq . . . . . . $enable_cpufreq
880 df . . . . . . . . $enable_df
881 disk . . . . . . . $enable_disk
882 hddtemp . . . . . . $enable_hddtemp
883 load . . . . . . . $enable_load
884 memory . . . . . . $enable_memory
885 mysql . . . . . . . $enable_mysql
886 nfs . . . . . . . . $enable_nfs
887 ping . . . . . . . $enable_ping
888 processes . . . . . $enable_processes
889 sensors . . . . . . $enable_sensors
890 serial . . . . . . $enable_serial
891 swap . . . . . . . $enable_swap
892 tape . . . . . . . $enable_tape
893 traffic . . . . . . $enable_traffic
894 users . . . . . . . $enable_users
895 vserver . . . . . . $enable_vserver
896 wireless . . . . . $enable_wireless