1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 3.8.3)
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(syslog.h)
39 AC_CHECK_HEADERS(fcntl.h)
40 AC_CHECK_HEADERS(signal.h)
41 AC_CHECK_HEADERS(assert.h)
42 AC_CHECK_HEADERS(sys/types.h)
43 AC_CHECK_HEADERS(sys/socket.h)
44 AC_CHECK_HEADERS(sys/select.h)
45 AC_CHECK_HEADERS(netdb.h)
46 AC_CHECK_HEADERS(arpa/inet.h)
47 AC_CHECK_HEADERS(sys/resource.h)
48 AC_CHECK_HEADERS(sys/param.h)
51 AC_CHECK_HEADERS(netinet/in_systm.h, [], [],
56 AC_CHECK_HEADERS(netinet/in.h, [], [],
60 #if HAVE_NETINET_IN_SYSTM_H
61 # include <netinet/in_systm.h>
64 AC_CHECK_HEADERS(netinet/ip.h, [], [],
68 #if HAVE_NETINET_IN_SYSTM_H
69 # include <netinet/in_systm.h>
72 # include <netinet/in.h>
75 AC_CHECK_HEADERS(netinet/ip_icmp.h, [], [],
79 #if HAVE_NETINET_IN_SYSTM_H
80 # include <netinet/in_systm.h>
83 # include <netinet/in.h>
86 # include <netinet/ip.h>
89 AC_CHECK_HEADERS(netinet/ip_var.h, [], [],
93 #if HAVE_NETINET_IN_SYSTM_H
94 # include <netinet/in_systm.h>
97 # include <netinet/in.h>
100 # include <netinet/ip.h>
103 AC_CHECK_HEADERS(netinet/ip6.h, [], [],
108 # include <sys/types.h>
110 #if HAVE_NETINET_IN_SYSTM_H
111 # include <netinet/in_systm.h>
113 #if HAVE_NETINET_IN_H
114 # include <netinet/in.h>
117 AC_CHECK_HEADERS(netinet/icmp6.h, [], [],
122 # include <sys/types.h>
124 #if HAVE_NETINET_IN_SYSTM_H
125 # include <netinet/in_systm.h>
127 #if HAVE_NETINET_IN_H
128 # include <netinet/in.h>
130 #if HAVE_NETINET_IP6_H
131 # include <netinet/ip6.h>
136 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h)
139 AC_CHECK_HEADERS(sys/loadavg.h)
142 AC_CHECK_HEADERS(utmp.h)
143 AC_CHECK_HEADERS(utmpx.h)
146 AC_CHECK_HEADERS(grp.h pwd.h sys/ucred.h)
147 AC_CHECK_HEADERS(ctype.h)
148 AC_CHECK_HEADERS(limits.h)
149 AC_CHECK_HEADERS(sys/quota.h)
150 AC_CHECK_HEADERS(xfs/xqm.h)
152 # For mount interface
153 AC_CHECK_HEADERS(fs_info.h)
154 AC_CHECK_HEADERS(fshelp.h)
155 AC_CHECK_HEADERS(paths.h)
156 AC_CHECK_HEADERS(mntent.h)
157 AC_CHECK_HEADERS(mnttab.h)
158 AC_CHECK_HEADERS(sys/fstyp.h)
159 AC_CHECK_HEADERS(sys/fs_types.h)
160 AC_CHECK_HEADERS(sys/mntent.h)
161 AC_CHECK_HEADERS(sys/mnttab.h)
162 AC_CHECK_HEADERS(sys/mount.h)
163 AC_CHECK_HEADERS(sys/statfs.h)
164 AC_CHECK_HEADERS(sys/statvfs.h)
165 AC_CHECK_HEADERS(sys/vfs.h)
166 AC_CHECK_HEADERS(sys/vfstab.h)
168 # For debugging interface (variable number of arguments)
169 AC_CHECK_HEADERS(stdarg.h)
171 dnl Checking for libraries
175 # Checks for typedefs, structures, and compiler characteristics.
184 # Checks for library functions.
186 AC_PROG_GCC_TRADITIONAL
187 AC_CHECK_FUNCS(gettimeofday select strdup strtol)
188 AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket))
189 AC_CHECK_FUNCS(getaddrinfo getnameinfo)
190 AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
191 AC_CHECK_FUNCS(strncasecmp strcasecmp)
192 AC_CHECK_FUNCS(openlog syslog closelog)
195 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
198 AC_CHECK_FUNCS(statfs statvfs)
201 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
204 AC_CHECK_FUNCS(getutent getutxent)
207 AC_CHECK_FUNCS(quotactl)
208 AC_CHECK_FUNCS(getgrgid getpwuid)
210 # For mount interface
211 AC_CHECK_FUNCS(getfsent getvfsent listmntent)
212 AC_CHECK_FUNCS(getfsstat)
214 # Check for different versions of `getmntent' here..
216 if test "x$ac_cv_lib_sun_getmntent" = "xyes"
218 AC_DEFINE(HAVE_SUN_GETMNTENT, 1,
219 [Define if the function getmntent exists. It's the version from libsun.])
221 if test "x$ac_cv_lib_seq_getmntent" = "xyes"
223 AC_DEFINE(HAVE_SEQ_GETMNTENT, 1,
224 [Define if the function getmntent exists. It's the version from libseq.])
226 if test "x$ac_cv_lib_gen_getmntent" = "xyes"
228 AC_DEFINE(HAVE_GEN_GETMNTENT, 1,
229 [Define if the function getmntent exists. It's the version from libgen.])
232 if test "x$ac_cv_func_getmntent" = "xyes"; then
234 CFLAGS="-Wall -Werror $CFLAGS"
235 AC_CACHE_CHECK([whether getmntent takes one argument],
238 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
239 #include "$srcdir/src/utils_mount.h"]],
240 [[(void)getmntent((FILE *)NULL);]]
242 [fu_cv_getmntent1=yes],
243 [fu_cv_getmntent1=no]
246 if test "x$fu_cv_getmntent1" = "xno"; then
247 AC_CACHE_CHECK([whether getmntent takes two arguments],
250 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
251 #include "$srcdir/src/utils_mount.h"]],
252 [[(void)getmntent((FILE *)NULL,
253 (struct mnttab *)NULL);]]
255 [fu_cv_getmntent2=yes],
256 [fu_cv_getmntent2=no]
262 if test "x$fu_cv_getmntent1" = "xyes"; then
263 AC_DEFINE(HAVE_GETMNTENT1,
265 [Define if there is a function named getmntent
266 for reading the list of mounted filesystems, and
267 that function takes a single argument. (4.3BSD,
268 SunOS, HP-UX, Dynix, Irix, Linux)]
271 if test "x$fu_cv_getmntent2" = "xyes"; then
272 AC_DEFINE(HAVE_GETMNTENT2,
274 [Define if there is a function named getmntent
275 for reading the list of mounted filesystems, and
276 that function takes two arguments. (SVR4)]
280 AC_MSG_CHECKING([for kernel type ($host_os)])
283 AC_DEFINE([KERNEL_LINUX], [], [True if program is to be compiled for a Linux kernel])
287 AC_DEFINE([KERNEL_SOLARIS], [], [True if program is to be compiled for a Solaris kernel])
293 AC_MSG_RESULT([$ac_system])
296 AC_CHECK_LIB(socket, socket,
298 AC_DEFINE(HAVE_LIBSOCKET, 1, [Define to 1 if you have the 'socket' library (-lsocket).])
300 [with_libsocket="no"])
301 AM_CONDITIONAL(BUILD_WITH_LIBSOCKET, test "x$with_libsocket" = "xyes")
304 AC_CHECK_LIB(resolv, res_search,
306 AC_DEFINE(HAVE_LIBRESOLV, 1, [Define to 1 if you have the 'resolv' library (-lresolv).])
308 [with_libresolv="no"])
309 AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
311 m4_divert_once([HELP_WITH], [
312 collectd additional packages:])
314 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
315 AC_ARG_WITH(rrdtool, [AS_HELP_STRING([--with-rrdtool@<:@=PREFIX@:>@], [Path to rrdtool.])],
316 [ if test "x$withval" != "xno" && test "x$withval" != "xyes"
318 LDFLAGS="$LDFLAGS -L$withval/lib"
319 CPPFLAGS="$CPPFLAGS -I$withval/include"
322 ], [with_rrdtool="yes"])
323 if test "x$with_rrdtool" = "xyes"
325 AC_CHECK_LIB(rrd, rrd_update,
327 AC_DEFINE(HAVE_LIBRRD, 1, [Define to 1 if you have the rrd library (-lrrd).])
329 [with_rrdtool="no (librrd not found)"], [-lm])
331 if test "x$with_rrdtool" = "xyes"
333 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no (rrd.h not found)"])
335 if test "x$with_rrdtool" = "xyes"
341 AC_DEFINE_UNQUOTED(COLLECT_RRDTOOL, [$collect_rrdtool],
342 [Wether or not to use rrdtool library])
343 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
345 #AC_ARG_WITH(pth, [AS_HELP_STRING([--with-pth=@<:@=PREFIX@:>@], [Path to pth (experimental).]),
346 #[ if test "x$withval" != "xno" && test "x$withval" != "xyes"
348 # LDFLAGS="$LDFLAGS -L$withval/lib"
349 # CPPFLAGS="$CPPFLAGS -I$withval/include"
353 #if test "x$with_pth" = "xyes"
355 # AC_CHECK_LIB(pth, pth_init,, [with_pth="no (libpth not found)"], [])
357 #if test "x$with_pth" = "xyes"
359 # AC_CHECK_HEADERS(pth.h,, [with_pth="no (pth.h not found)"])
361 #if test "x$with_pth" = "xyes"
367 #AC_DEFINE_UNQUOTED(COLLECT_PTH, [$collect_pth],
368 # [Wether or not to use pth (portable threads) library])
369 #AM_CONDITIONAL(BUILD_WITH_PTH, test "x$with_pth" = "xyes")
371 if test "$ac_system" = "Solaris"
375 with_kstat="no (Solaris only)"
377 if test "x$with_kstat" = "xyes"
379 AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (libkstat not found)"])
381 if test "x$with_kstat" = "xyes"
383 AC_CHECK_LIB(devinfo, di_init)
384 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
386 if test "x$with_kstat" = "xyes"
392 AC_DEFINE_UNQUOTED(COLLECT_KSTAT, [$collect_kstat],
393 [Wether or not to use kstat library (Solaris)])
394 AM_CONDITIONAL(BUILD_WITH_KSTAT, test "x$with_kstat" = "xyes")
396 AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
398 if test "x$withval" != "xno" && test "x$withval" != "xyes"
400 LDFLAGS="$LDFLAGS -L$withval/lib"
401 CPPFLAGS="$CPPFLAGS -I$withval/include"
402 with_libstatgrab="yes"
406 if test "x$ac_system" == "xunknown"
408 with_libstatgrab="yes"
410 with_libstatgrab="no"
413 if test "x$with_libstatgrab" = "xyes"
415 AC_CHECK_LIB(devstat, getdevs)
416 AC_CHECK_LIB(kvm, kvm_getargv)
417 AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (libstatgrab not found)"])
419 if test "x$with_libstatgrab" = "xyes"
421 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
423 if test "x$with_libstatgrab" = "xyes"
425 collect_libstatgrab=1
427 collect_libstatgrab=0
429 AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
430 [Wether or not to use statgrab library])
431 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
433 AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])],
435 if test "x$withval" != "xno" && test "x$withval" != "xyes"
437 LDFLAGS="$LDFLAGS -L$withval/lib"
438 CPPFLAGS="$CPPFLAGS -I$withval/include"
439 with_lm_sensors="yes"
443 if test "x$ac_system" = "xLinux"
445 with_lm_sensors="yes"
450 if test "x$with_lm_sensors" = "xyes"
452 AC_CHECK_LIB(sensors, sensors_init,
454 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
456 [with_lm_sensors="no (libsensors not found)"])
458 if test "x$with_lm_sensors" = "xyes"
460 AC_CHECK_HEADERS(sensors/sensors.h,
462 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
464 [with_lm_sensors="no (sensors/sensors.h not found)"])
466 if test "x$with_lm_sensors" = "xyes"
472 AC_DEFINE_UNQUOTED(COLLECT_LM_SENSORS, [$collect_lm_sensors],
473 [Wether or not to use sensors library])
474 AM_CONDITIONAL(BUILD_WITH_LM_SENSORS, test "x$with_lm_sensors" = "xyes")
476 AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to libmysql.])],
478 if test "x$withval" != "xno" && test "x$withval" != "xyes"
480 LDFLAGS="$LDFLAGS -L$withval/lib"
481 CPPFLAGS="$CPPFLAGS -I$withval/include"
488 if test "x$with_libmysql" = "xyes"
490 AC_CHECK_LIB(mysqlclient, mysql_init,
492 AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1, [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
493 ], [with_libmysql="no (libmysql not found)"])
495 if test "x$with_libmysql" = "xyes"
497 AC_CHECK_HEADERS(mysql/mysql.h,
499 AC_DEFINE(HAVE_MYSQL_MYSQL_H, 1, [Define to 1 if you have the <mysql/mysql.h> header file.])
500 ], [with_libmysql="no (mysql/mysql.h not found)"])
502 if test "x$with_libmysql" = "xyes"
508 AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libmysql],
509 [Wether or not to use mysql library])
510 AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libmysql" = "xyes")
513 # Check for enabled/disabled features
516 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
517 # ------------------------------------------------------------
519 m4_define([my_toupper], [m4_translit([$1], m4_defn([m4_cr_letters]), m4_defn([m4_cr_LETTERS]))])
524 m4_if([$1], [], [AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 1st argument must not be empty])])dnl
529 m4_define([EnDis],[disabled])dnl
530 m4_define([YesNo],[no])dnl
536 m4_define([EnDis],[enabled])dnl
537 m4_define([YesNo],[yes])dnl
540 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 2nd argument must be either enable or disable])dnl
544 m4_if([$3], [feature], [],
548 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 3rd argument must be either feature or disable])dnl
554 AS_HELP_STRING([--$2-$1], [$2 $4 (EnDis by def)]),
556 enable_$1='[YesNo]'dnl
558 if test "x$enable_$1" = "xno"
562 if test "x$enable_$1" = "xyes"
566 AC_MSG_NOTICE([please specify either --enable-$1 or --disable-$1; enabling $1.])
571 AC_DEFINE_UNQUOTED([COLLECT_]my_toupper([$1]), [$collectd_$1], [wether or not to enable $3 $4])
572 AM_CONDITIONAL([BUILD_]my_toupper([$3])[_]my_toupper([$1]), [test "x$enable_$1" = "xyes"])dnl
574 )# AC_COLLECTD(name, enable/disable, info-text, feature/module)
576 m4_divert_once([HELP_ENABLE], [
578 AC_COLLECTD([debug], [enable], [feature], [debugging])
579 AC_COLLECTD([daemon], [disable], [feature], [daemon mode])
581 m4_divert_once([HELP_ENABLE], [
583 AC_COLLECTD([battery], [disable], [module], [battery statistics])
584 AC_COLLECTD([cpu], [disable], [module], [cpu usage statistics])
585 AC_COLLECTD([cpufreq], [disable], [module], [system cpu frequency statistics])
586 AC_COLLECTD([disk], [disable], [module], [disk/partition statistics])
587 AC_COLLECTD([df], [disable], [module], [df statistics])
588 AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
589 AC_COLLECTD([hddtemp], [disable], [module], [hdd temperature statistics])
590 AC_COLLECTD([load], [disable], [module], [system load statistics])
591 AC_COLLECTD([memory], [disable], [module], [memory statistics])
592 AC_COLLECTD([mysql], [disable], [module], [mysql statistics])
593 AC_COLLECTD([nfs], [disable], [module], [nfs statistics])
594 AC_COLLECTD([ping], [disable], [module], [ping statistics])
595 AC_COLLECTD([processes], [disable], [module], [processes statistics])
596 AC_COLLECTD([sensors], [disable], [module], [lm_sensors statistics])
597 AC_COLLECTD([serial], [disable], [module], [serial statistics])
598 AC_COLLECTD([swap], [disable], [module], [swap statistics])
599 AC_COLLECTD([tape], [disable], [module], [tape statistics])
600 AC_COLLECTD([traffic], [disable], [module], [system traffic statistics])
601 AC_COLLECTD([users], [disable], [module], [user count statistics])
602 AC_COLLECTD([wireless], [disable], [module], [wireless link statistics])
604 #m4_divert_once([HELP_ENABLE], [
606 #AC_ARG_ENABLE(cpu, AC_HELP_STRING([--disable-cpu], [Disable CPU usage statistics]),, [enable_cpu="yes"])
607 #if test "x$enable_cpu" != "xno"
609 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$have_sysctlbyname" = "xyes"
616 #if test "x$enable_cpu" = "xno"
618 # AC_DEFINE(COLLECT_CPU, 0, [Wether or not to collect CPU usage statistics])
620 #AM_CONDITIONAL(BUILD_MODULE_CPU, test "x$enable_cpu" = "xyes")
622 #AC_ARG_ENABLE(cpufreq, AC_HELP_STRING([--disable-cpufreq], [Disable system cpu frequency statistics]),, [enable_cpufreq="yes"])
623 #if test "x$enable_cpufreq" != "xno"
625 # if test "x$ac_system" = "xLinux"
627 # enable_cpufreq="yes"
629 # enable_cpufreq="no"
632 #if test "x$enable_cpufreq" = "xno"
634 # AC_DEFINE(COLLECT_CPUFREQ, 0, [Wether or not to collect cpu frequency statistics])
636 #AM_CONDITIONAL(BUILD_MODULE_CPUFREQ, test "x$enable_cpufreq" = "xyes")
638 #AC_ARG_ENABLE(disk, AC_HELP_STRING([--disable-disk], [Disable disk/partition statistics]),, [enable_disk="yes"])
639 #if test "x$enable_disk" != "xno"
641 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes"
648 #if test "x$enable_disk" = "xno"
650 # AC_DEFINE(COLLECT_DISK, 0, [Wether or not to collect diskstats])
652 #AM_CONDITIONAL(BUILD_MODULE_DISK, test "x$enable_disk" = "xyes")
654 #AC_ARG_ENABLE(hddtemp, AC_HELP_STRING([--disable-hddtemp], [Disable hdd temperature statistics]),, [enable_hddtemp="yes"])
655 #if test "x$enable_hddtemp" = "xno"
657 # AC_DEFINE(COLLECT_HDDTEMP, 0, [Wether or not to collect hdd temperature statistics])
659 #AM_CONDITIONAL(BUILD_MODULE_HDDTEMP, test "x$enable_hddtemp" = "xyes")
661 #AC_ARG_ENABLE(load, AC_HELP_STRING([--disable-load], [Disable system load statistics]),, [enable_load="yes"])
662 #if test "x$enable_load" != "xno"
664 # if test "x$have_getloadavg" = "xyes" -o "x$ac_system" = "xLinux" -o "x$with_libstatgrab" = "xyes"
671 #if test "x$enable_load" = "xno"
673 # AC_DEFINE(COLLECT_LOAD, 0, [Wether or not to collect system load statistics])
675 #AM_CONDITIONAL(BUILD_MODULE_LOAD, test "x$enable_load" = "xyes")
677 #AC_ARG_ENABLE(memory, AC_HELP_STRING([--disable-memory], [Disable memory statistics]),, [enable_memory="yes"])
678 #if test "x$enable_memory" != "xno"
680 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
682 # enable_memory="yes"
687 #if test "x$enable_memory" = "xno"
689 # AC_DEFINE(COLLECT_MEMORY, 0, [Wether or not to collect memory statistics])
691 #AM_CONDITIONAL(BUILD_MODULE_MEMORY, test "x$enable_memory" = "xyes")
693 #AC_ARG_ENABLE(nfs, AC_HELP_STRING([--disable-nfs], [Disable nfs statistics]),, [enable_nfs="yes"])
694 #if test "x$enable_nfs" != "xno"
696 # if test "x$ac_system" = "xLinux"
703 #if test "x$enable_nfs" = "xno"
705 # AC_DEFINE(COLLECT_NFS, 0, [Wether or not to collect nfs statistics])
707 #AM_CONDITIONAL(BUILD_MODULE_NFS, test "x$enable_nfs" = "xyes")
709 #AC_ARG_ENABLE(ping, AC_HELP_STRING([--disable-ping], [Disable ping statistics]),, [enable_ping="yes"])
710 #if test "x$enable_ping" != "xno"
714 #if test "x$enable_ping" = "xno"
716 # AC_DEFINE(COLLECT_PING, 0, [Wether or not to collect ping statistics])
718 #AM_CONDITIONAL(BUILD_MODULE_PING, test "x$enable_ping" = "xyes")
720 #AC_ARG_ENABLE(processes, AC_HELP_STRING([--disable-processes], [Disable processes statistics]),, [enable_processes="yes"])
721 #if test "x$enable_processes" != "xno"
723 # if test "x$ac_system" = "xLinux"
725 # enable_processes="yes"
727 # enable_processes="no"
730 #if test "x$enable_processes" = "xno"
732 # AC_DEFINE(COLLECT_PROCESSES, 0, [Wether or not to collect processes statistics])
734 #AM_CONDITIONAL(BUILD_MODULE_PROCESSES, test "x$enable_processes" = "xyes")
736 ##AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
738 #AC_ARG_ENABLE(sensors, AC_HELP_STRING([--disable-sensors], [Disable lm_sensors statistics]),, [enable_sensors=$with_lm_sensors])
739 #if test "x$enable_sensors" != "xno"
741 # if test "x$with_lm_sensors" = "xyes"
743 # enable_sensors="yes"
745 # enable_sensors="no"
748 #if test "x$enable_sensors" = "xno"
750 # AC_DEFINE(COLLECT_SENSORS, 0, [Wether or not to collect lm_sensors statistics])
752 #AM_CONDITIONAL(BUILD_MODULE_SENSORS, test "x$enable_sensors" = "xyes")
754 #AC_ARG_ENABLE(serial, AC_HELP_STRING([--disable-serial], [Disable serial statistics]),, [enable_serial="yes"])
755 #if test "x$enable_serial" != "xno"
757 # if test "x$ac_system" = "xLinux"
759 # enable_serial="yes"
764 #if test "x$enable_serial" = "xno"
766 # AC_DEFINE(COLLECT_SERIAL, 0, [Wether or not to collect serial statistics])
768 #AM_CONDITIONAL(BUILD_MODULE_SERIAL, test "x$enable_serial" = "xyes")
770 #AC_ARG_ENABLE(swap, AC_HELP_STRING([--disable-swap], [Disable swap statistics]),, [enable_swap="yes"])
771 #if test "x$enable_swap" != "xno"
773 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
780 #if test "x$enable_swap" = "xno"
782 # AC_DEFINE(COLLECT_SWAP, 0, [Wether or not to collect swap statistics])
784 #AM_CONDITIONAL(BUILD_MODULE_SWAP, test "x$enable_swap" = "xyes")
786 #AC_ARG_ENABLE(tape, AC_HELP_STRING([--disable-tape], [Disable tape statistics]),, [enable_tape="yes"])
787 #if test "x$enable_tape" != "xno"
789 # if test "x$with_kstat" = "xyes"
796 #if test "x$enable_tape" = "xno"
798 # AC_DEFINE(COLLECT_TAPE, 0, [Wether or not to collect tape statistics])
800 #AM_CONDITIONAL(BUILD_MODULE_TAPE, test "x$enable_tape" = "xyes")
802 #AC_ARG_ENABLE(traffic, AC_HELP_STRING([--disable-traffic], [Disable system traffic statistics]),, [enable_traffic="yes"])
803 #if test "x$enable_traffic" != "xno"
805 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
807 # enable_traffic="yes"
809 # enable_traffic="no"
812 #if test "x$enable_traffic" = "xno"
814 # AC_DEFINE(COLLECT_TRAFFIC, 0, [Wether or not to collect network traffic statistics])
816 #AM_CONDITIONAL(BUILD_MODULE_TRAFFIC, test "x$enable_traffic" = "xyes")
818 #AC_COLLECTD([users], [disable], [module], [user count statistics])
820 AC_OUTPUT(Makefile src/libconfig/Makefile src/liboping/Makefile src/Makefile)
826 librrd . . . . . . $with_rrdtool
827 lm_sensors . . . . $with_lm_sensors
828 libstatgrab . . . . $with_libstatgrab
829 libkstat . . . . . $with_kstat
830 libmysql . . . . . $with_libmysql
833 debug . . . . . . . $enable_debug
834 daemon mode . . . . $enable_daemon
837 battery . . . . . . $enable_battery
838 cpu . . . . . . . . $enable_cpu
839 cpufreq . . . . . . $enable_cpufreq
840 df . . . . . . . . $enable_df
841 disk . . . . . . . $enable_disk
842 hddtemp . . . . . . $enable_hddtemp
843 load . . . . . . . $enable_load
844 memory . . . . . . $enable_memory
845 mysql . . . . . . . $enable_mysql
846 nfs . . . . . . . . $enable_nfs
847 ping . . . . . . . $enable_ping
848 processes . . . . . $enable_processes
849 sensors . . . . . . $enable_sensors
850 serial . . . . . . $enable_serial
851 swap . . . . . . . $enable_swap
852 tape . . . . . . . $enable_tape
853 traffic . . . . . . $enable_traffic
854 users . . . . . . . $enable_users
855 wireless . . . . . $enable_wireless