dad499a9ddec0e9aa185a04ebbb9c17faa21b969
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 4.0.0-rc2)
3 AC_CONFIG_SRCDIR(src/collectd.c)
4 AC_CONFIG_HEADERS(src/config.h)
5 AM_INIT_AUTOMAKE(dist-bzip2)
6 AC_LANG(C)
8 AC_PREFIX_DEFAULT("/opt/collectd")
10 #
11 # Checks for programs.
12 #
13 AC_PROG_CC
14 AC_PROG_CPP
15 AC_PROG_INSTALL
16 AC_PROG_LN_S
17 AC_PROG_MAKE_SET
18 AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes")
20 dnl configure libtool
21 AC_DISABLE_STATIC
22 AC_LIBLTDL_CONVENIENCE
23 AC_SUBST(LTDLINCL)
24 AC_SUBST(LIBLTDL)
25 AC_LIBTOOL_DLOPEN
26 AC_PROG_LIBTOOL
27 AC_PROG_LEX
28 AC_PROG_YACC
29 AC_CONFIG_SUBDIRS(libltdl)
31 #
32 # Checks for header files.
33 #
34 AC_HEADER_STDC
35 AC_HEADER_SYS_WAIT
36 AC_HEADER_DIRENT
37 AC_CHECK_HEADERS(stdint.h)
38 AC_CHECK_HEADERS(stdio.h)
39 AC_CHECK_HEADERS(errno.h)
40 AC_CHECK_HEADERS(math.h)
41 AC_CHECK_HEADERS(syslog.h)
42 AC_CHECK_HEADERS(fcntl.h)
43 AC_CHECK_HEADERS(signal.h)
44 AC_CHECK_HEADERS(assert.h)
45 AC_CHECK_HEADERS(sys/types.h)
46 AC_CHECK_HEADERS(sys/socket.h)
47 AC_CHECK_HEADERS(sys/select.h)
48 AC_CHECK_HEADERS(poll.h)
49 AC_CHECK_HEADERS(netdb.h)
50 AC_CHECK_HEADERS(arpa/inet.h)
51 AC_CHECK_HEADERS(sys/resource.h)
52 AC_CHECK_HEADERS(sys/param.h)
54 # For ping library
55 AC_CHECK_HEADERS(netinet/in_systm.h, [], [],
56 [#if HAVE_STDINT_H
57 # include <stdint.h>
58 #endif
59 #if HAVE_SYS_TYPES_H
60 # include <sys/types.h>
61 #endif
62 ])
63 AC_CHECK_HEADERS(netinet/in.h, [], [],
64 [#if HAVE_STDINT_H
65 # include <stdint.h>
66 #endif
67 #if HAVE_SYS_TYPES_H
68 # include <sys/types.h>
69 #endif
70 #if HAVE_NETINET_IN_SYSTM_H
71 # include <netinet/in_systm.h>
72 #endif
73 ])
74 AC_CHECK_HEADERS(netinet/ip.h, [], [],
75 [#if HAVE_STDINT_H
76 # include <stdint.h>
77 #endif
78 #if HAVE_SYS_TYPES_H
79 # include <sys/types.h>
80 #endif
81 #if HAVE_NETINET_IN_SYSTM_H
82 # include <netinet/in_systm.h>
83 #endif
84 #if HAVE_NETINET_IN_H
85 # include <netinet/in.h>
86 #endif
87 ])
88 AC_CHECK_HEADERS(netinet/ip_icmp.h, [], [],
89 [#if HAVE_STDINT_H
90 # include <stdint.h>
91 #endif
92 #if HAVE_SYS_TYPES_H
93 # include <sys/types.h>
94 #endif
95 #if HAVE_NETINET_IN_SYSTM_H
96 # include <netinet/in_systm.h>
97 #endif
98 #if HAVE_NETINET_IN_H
99 # include <netinet/in.h>
100 #endif
101 #if HAVE_NETINET_IP_H
102 # include <netinet/ip.h>
103 #endif
104 ])
105 AC_CHECK_HEADERS(netinet/ip_var.h, [], [],
106 [#if HAVE_STDINT_H
107 # include <stdint.h>
108 #endif
109 #if HAVE_SYS_TYPES_H
110 # include <sys/types.h>
111 #endif
112 #if HAVE_NETINET_IN_SYSTM_H
113 # include <netinet/in_systm.h>
114 #endif
115 #if HAVE_NETINET_IN_H
116 # include <netinet/in.h>
117 #endif
118 #if HAVE_NETINET_IP_H
119 # include <netinet/ip.h>
120 #endif
121 ])
122 AC_CHECK_HEADERS(netinet/ip6.h, [], [],
123 [#if HAVE_STDINT_H
124 # include <stdint.h>
125 #endif
126 #if HAVE_SYS_TYPES_H
127 # include <sys/types.h>
128 #endif
129 #if HAVE_NETINET_IN_SYSTM_H
130 # include <netinet/in_systm.h>
131 #endif
132 #if HAVE_NETINET_IN_H
133 # include <netinet/in.h>
134 #endif
135 ])
136 AC_CHECK_HEADERS(netinet/icmp6.h, [], [],
137 [#if HAVE_STDINT_H
138 # include <stdint.h>
139 #endif
140 #if HAVE_SYS_TYPES_H
141 # include <sys/types.h>
142 #endif
143 #if HAVE_NETINET_IN_SYSTM_H
144 # include <netinet/in_systm.h>
145 #endif
146 #if HAVE_NETINET_IN_H
147 # include <netinet/in.h>
148 #endif
149 #if HAVE_NETINET_IP6_H
150 # include <netinet/ip6.h>
151 #endif
152 ])
153 AC_CHECK_HEADERS(netinet/tcp.h, [], [],
154 [#if HAVE_STDINT_H
155 # include <stdint.h>
156 #endif
157 #if HAVE_SYS_TYPES_H
158 # include <sys/types.h>
159 #endif
160 #if HAVE_NETINET_IN_SYSTM_H
161 # include <netinet/in_systm.h>
162 #endif
163 #if HAVE_NETINET_IN_H
164 # include <netinet/in.h>
165 #endif
166 #if HAVE_NETINET_IP_H
167 # include <netinet/ip.h>
168 #endif
169 ])
170 AC_CHECK_HEADERS(netinet/udp.h, [], [],
171 [#if HAVE_STDINT_H
172 # include <stdint.h>
173 #endif
174 #if HAVE_SYS_TYPES_H
175 # include <sys/types.h>
176 #endif
177 #if HAVE_NETINET_IN_SYSTM_H
178 # include <netinet/in_systm.h>
179 #endif
180 #if HAVE_NETINET_IN_H
181 # include <netinet/in.h>
182 #endif
183 #if HAVE_NETINET_IP_H
184 # include <netinet/ip.h>
185 #endif
186 ])
188 # For cpu modules
189 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h)
190 AC_CHECK_HEADERS(mach/mach_init.h)
191 AC_CHECK_HEADERS(mach/host_priv.h)
192 AC_CHECK_HEADERS(mach/mach_error.h)
193 AC_CHECK_HEADERS(mach/mach_host.h)
194 AC_CHECK_HEADERS(mach/mach_port.h)
195 AC_CHECK_HEADERS(mach/mach_types.h)
196 AC_CHECK_HEADERS(mach/message.h)
197 AC_CHECK_HEADERS(mach/processor_set.h)
198 AC_CHECK_HEADERS(mach/processor.h)
199 AC_CHECK_HEADERS(mach/processor_info.h)
200 AC_CHECK_HEADERS(mach/task.h)
201 AC_CHECK_HEADERS(mach/thread_act.h)
202 AC_CHECK_HEADERS(mach/vm_region.h)
203 AC_CHECK_HEADERS(mach/vm_map.h)
204 AC_CHECK_HEADERS(mach/vm_prot.h)
205 AC_CHECK_HEADERS(mach/vm_statistics.h)
206 AC_CHECK_HEADERS(mach/kern_return.h)
208 # For hddtemp module
209 AC_CHECK_HEADERS(linux/major.h)
211 # For the apple_sensors module
212 AC_CHECK_HEADERS(CoreFoundation/CoreFoundation.h)
213 AC_CHECK_HEADERS(IOKit/IOKitLib.h)
214 AC_CHECK_HEADERS(IOKit/IOTypes.h)
216 # For the battery plugin
217 AC_CHECK_HEADERS(IOKit/ps/IOPowerSources.h, [], [],
218 [
219 #if HAVE_IOKIT_IOKITLIB_H
220 # include <IOKit/IOKitLib.h>
221 #endif
222 #if HAVE_IOKIT_IOTYPES_H
223 # include <IOKit/IOTypes.h>
224 #endif
225 ])
226 AC_CHECK_HEADERS(IOKit/ps/IOPSKeys.h)
228 # For the `disk' plugin
229 AC_CHECK_HEADERS(IOKit/IOBSD.h)
230 AC_CHECK_HEADERS(IOKit/storage/IOBlockStorageDriver.h)
232 # For load module
233 AC_CHECK_HEADERS(sys/loadavg.h)
235 # For the processes plugin
236 AC_CHECK_HEADERS(linux/config.h)
238 # For the swap module
239 AC_CHECK_HEADERS(sys/swap.h)
241 # For users module
242 AC_CHECK_HEADERS(utmp.h)
243 AC_CHECK_HEADERS(utmpx.h)
245 # For interface plugin
246 AC_CHECK_HEADERS(ifaddrs.h)
247 AC_CHECK_HEADERS(net/if.h, [], [],
248 [
249 #if HAVE_SYS_TYPES_H
250 # include <sys/types.h>
251 #endif
252 #if HAVE_SYS_SOCKET_H
253 # include <sys/socket.h>
254 #endif
255 ])
256 AC_CHECK_HEADERS(linux/if.h, [], [],
257 [
258 #if HAVE_SYS_TYPES_H
259 # include <sys/types.h>
260 #endif
261 #if HAVE_SYS_SOCKET_H
262 # include <sys/socket.h>
263 #endif
264 ])
265 AC_CHECK_HEADERS(linux/netdevice.h, [], [],
266 [
267 #if HAVE_SYS_TYPES_H
268 # include <sys/types.h>
269 #endif
270 #if HAVE_SYS_SOCKET_H
271 # include <sys/socket.h>
272 #endif
273 #if HAVE_LINUX_IF_H
274 # include <linux/if.h>
275 #endif
276 ])
278 # For apache plugin
279 AC_CHECK_HEADERS(curl/curl.h)
281 # For quota module
282 AC_CHECK_HEADERS(grp.h pwd.h sys/ucred.h)
283 AC_CHECK_HEADERS(ctype.h)
284 AC_CHECK_HEADERS(limits.h)
285 AC_CHECK_HEADERS(sys/quota.h)
286 AC_CHECK_HEADERS(xfs/xqm.h)
288 # For mount interface
289 AC_CHECK_HEADERS(fs_info.h)
290 AC_CHECK_HEADERS(fshelp.h)
291 AC_CHECK_HEADERS(paths.h)
292 AC_CHECK_HEADERS(mntent.h)
293 AC_CHECK_HEADERS(mnttab.h)
294 AC_CHECK_HEADERS(sys/fstyp.h)
295 AC_CHECK_HEADERS(sys/fs_types.h)
296 AC_CHECK_HEADERS(sys/mntent.h)
297 AC_CHECK_HEADERS(sys/mnttab.h)
298 AC_CHECK_HEADERS(sys/mount.h)
299 AC_CHECK_HEADERS(sys/statfs.h)
300 AC_CHECK_HEADERS(sys/statvfs.h)
301 AC_CHECK_HEADERS(sys/vfs.h)
302 AC_CHECK_HEADERS(sys/vfstab.h)
304 # For the swap plugin, FreeBSD
305 AC_CHECK_HEADERS(kvm.h)
307 # For the email plugin
308 AC_CHECK_HEADERS(linux/un.h, [], [],
309 [
310 #if HAVE_SYS_SOCKET_H
311 # include <sys/socket.h>
312 #endif
313 ])
314 AC_CHECK_HEADERS(sys/un.h)
315 AC_CHECK_HEADERS(grp.h)
317 # For debugging interface (variable number of arguments)
318 AC_CHECK_HEADERS(stdarg.h)
320 # Regular expressions for the ignorelist.
321 AC_CHECK_HEADERS(regex.h)
323 # For the dns plugin
324 AC_CHECK_HEADERS(arpa/nameser.h arpa/nameser_compat.h)
326 AC_CHECK_HEADERS(net/if_arp.h)
327 AC_CHECK_HEADERS(net/if_ppp.h)
328 AC_CHECK_HEADERS(netinet/if_ether.h)
330 # For the multimeter plugin
331 AC_CHECK_HEADERS(termios.h)
332 AC_CHECK_HEADERS(sys/ioctl.h)
334 #
335 # Checking for libraries
336 #
337 AC_CHECK_LIB(m, ext)
339 #
340 # Checks for typedefs, structures, and compiler characteristics.
341 #
342 AC_C_CONST
343 AC_TYPE_PID_T
344 AC_TYPE_SIZE_T
345 AC_TYPE_UID_T
346 AC_HEADER_TIME
348 #
349 # Checks for library functions.
350 #
351 AC_PROG_GCC_TRADITIONAL
352 AC_CHECK_FUNCS(gettimeofday select strdup strtol)
353 AC_CHECK_FUNCS(getaddrinfo getnameinfo)
354 AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
355 AC_CHECK_FUNCS(strncasecmp strcasecmp)
356 AC_CHECK_FUNCS(openlog syslog closelog)
358 socket_needs_socket="no"
359 AC_CHECK_FUNCS(socket, [], AC_CHECK_LIB(socket, socket, [socket_needs_socket="yes"], AC_MSG_ERROR(cannot find socket)))
360 AM_CONDITIONAL(BUILD_WITH_LIBSOCKET, test "x$socket_needs_socket" = "xyes")
362 nanosleep_needs_rt="no"
363 AC_CHECK_FUNCS(nanosleep, [], AC_CHECK_LIB(rt, nanosleep, [nanosleep_needs_rt="yes"], AC_MSG_ERROR(cannot find nanosleep)))
364 AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
366 # Regular expressions for the ignorelist.
367 AC_CHECK_FUNCS(regcomp regerror regexec regfree)
369 # For cpu module
370 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
372 # For df module
373 AC_CHECK_FUNCS(statfs statvfs)
375 # For load module
376 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
378 # For the `processes' plugin
379 AC_CHECK_FUNCS(thread_info)
381 # For users module
382 AC_CHECK_FUNCS(getutent getutxent)
384 # For quota module
385 AC_CHECK_FUNCS(quotactl)
386 AC_CHECK_FUNCS(getgrgid getpwuid)
388 # For interface module
389 AC_CHECK_FUNCS(getifaddrs)
391 # Check for NAN
392 nan_type="none"
393 if test "x$nan_type" = "xnone"; then
394 AC_CACHE_CHECK([whether NAN is defined by default],
395 [have_nan_default],
396 AC_COMPILE_IFELSE(
397 AC_LANG_PROGRAM(
398 [[
399 #include <stdlib.h>
400 #include <math.h>
401 static float foo = NAN;
402 ]],
403 [[
404 if (isnan (foo))
405 return 0;
406 else
407 return 1;
408 ]]),
409 [have_nan_default="yes"],
410 [have_nan_default="no"]
411 )
412 )
413 if test "x$have_nan_default" = "xyes"
414 then
415 nan_type="default"
416 AC_DEFINE(NAN_STATIC_DEFAULT, 1,
417 [Define if NAN is defined by default and can initialize static variables.])
418 fi
419 fi
420 if test "x$nan_type" = "xnone"; then
421 AC_CACHE_CHECK([whether NAN is defined by __USE_ISOC99],
422 [have_nan_isoc],
423 AC_COMPILE_IFELSE(
424 AC_LANG_PROGRAM(
425 [[
426 #include <stdlib.h>
427 #define __USE_ISOC99 1
428 #include <math.h>
429 static float foo = NAN;
430 ]],
431 [[
432 if (isnan (foo))
433 return 0;
434 else
435 return 1;
436 ]]),
437 [have_nan_isoc="yes"],
438 [have_nan_isoc="no"]
439 )
440 )
441 if test "x$have_nan_isoc" = "xyes"
442 then
443 nan_type="isoc99"
444 AC_DEFINE(NAN_STATIC_ISOC, 1,
445 [Define if NAN is defined by __USE_ISOC99 and can initialize static variables.])
446 fi
447 fi
448 if test "x$nan_type" = "xnone"; then
449 AC_CACHE_CHECK([whether NAN can be defined by 0/0],
450 [have_nan_zero],
451 AC_RUN_IFELSE(
452 AC_LANG_PROGRAM(
453 [[
454 #include <stdlib.h>
455 #include <math.h>
456 #ifdef NAN
457 # undef NAN
458 #endif
459 #define NAN (0.0 / 0.0)
460 #ifndef isnan
461 # define isnan(f) ((f) != (f))
462 #endif
463 static float foo = NAN;
464 ]],
465 [[
466 if (isnan (foo))
467 return 0;
468 else
469 return 1;
470 ]]),
471 [have_nan_zero="yes"],
472 [have_nan_zero="no"]
473 )
474 )
475 if test "x$have_nan_zero" = "xyes"
476 then
477 nan_type="zero"
478 AC_DEFINE(NAN_ZERO_ZERO, 1,
479 [Define if NAN can be defined as (0.0 / 0.0)])
480 fi
481 fi
482 if test "x$nan_type" = "xnone"; then
483 AC_MSG_ERROR([Didn't find out how to statically initialize variables to NAN. Sorry.])
484 fi
486 # For mount interface
487 #AC_CHECK_FUNCS(getfsent getvfsent)
489 have_getfsstat="no"
490 AC_CHECK_FUNCS(getfsstat, [have_getfsstat="yes"])
491 have_getvfsstat="no"
492 AC_CHECK_FUNCS(getvfsstat, [have_getvfsstat="yes"])
493 have_listmntent="no"
494 AC_CHECK_FUNCS(listmntent, [have_listmntent="yes"])
496 have_getmntent="no"
497 AC_CHECK_FUNCS(getmntent, [have_getmntent="c"])
498 if test "x$have_getmntent" = "xno"; then
499 AC_CHECK_LIB(sun, getmntent, [have_getmntent="sun"])
500 fi
501 if test "x$have_getmntent" = "xno"; then
502 AC_CHECK_LIB(seq, getmntent, [have_getmntent="seq"])
503 fi
504 if test "x$have_getmntent" = "xno"; then
505 AC_CHECK_LIB(gen, getmntent, [have_getmntent="gen"])
506 fi
508 if test "x$have_getmntent" = "xc"; then
509 AC_CACHE_CHECK([whether getmntent takes one argument],
510 [have_one_getmntent],
511 AC_COMPILE_IFELSE(
512 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
513 #include <mntent.h>
514 #include "$srcdir/src/utils_mount.h"]],
515 [[
516 FILE *fh;
517 struct mntent *me;
518 fh = setmntent ("/etc/mtab", "r");
519 me = getmntent (fh);
520 ]]
521 ),
522 [have_one_getmntent="yes"],
523 [have_one_getmntent="no"]
524 )
525 )
526 AC_CACHE_CHECK([whether getmntent takes two arguments],
527 [have_two_getmntent],
528 AC_COMPILE_IFELSE(
529 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
530 #include <sys/mnttab.h>
531 #include "$srcdir/src/utils_mount.h"]],
532 [[
533 FILE *fh;
534 struct mnttab mt;
535 int status;
536 fh = fopen ("/etc/mnttab", "r");
537 status = getmntent (fh, &mt);
538 ]]
539 ),
540 [have_two_getmntent="yes"],
541 [have_two_getmntent="no"]
542 )
543 )
544 fi
546 # Check for different versions of `getmntent' here..
548 if test "x$have_getmntent" = "xc"; then
549 if test "x$have_one_getmntent" = "xyes"; then
550 AC_DEFINE(HAVE_ONE_GETMNTENT, 1,
551 [Define if the function getmntent exists and takes one argument.])
552 fi
553 if test "x$have_two_getmntent" = "xyes"; then
554 AC_DEFINE(HAVE_TWO_GETMNTENT, 1,
555 [Define if the function getmntent exists and takes two arguments.])
556 fi
557 fi
558 if test "x$have_getmntent" = "xsun"; then
559 AC_DEFINE(HAVE_SUN_GETMNTENT, 1,
560 [Define if the function getmntent exists. It's the version from libsun.])
561 fi
562 if test "x$have_getmntent" = "xseq"; then
563 AC_DEFINE(HAVE_SEQ_GETMNTENT, 1,
564 [Define if the function getmntent exists. It's the version from libseq.])
565 fi
566 if test "x$have_getmntent" = "xgen"; then
567 AC_DEFINE(HAVE_GEN_GETMNTENT, 1,
568 [Define if the function getmntent exists. It's the version from libgen.])
569 fi
571 # Check for structures
572 AC_CHECK_MEMBERS([struct if_data.ifi_ibytes, struct if_data.ifi_opackets, struct if_data.ifi_ierrors],
573 [AC_DEFINE(HAVE_STRUCT_IF_DATA, 1, [Define if struct if_data exists and is usable.])],
574 [],
575 [
576 #include <sys/types.h>
577 #include <sys/socket.h>
578 #include <net/if.h>
579 ])
580 AC_CHECK_MEMBERS([struct net_device_stats.rx_bytes, struct net_device_stats.tx_packets, struct net_device_stats.rx_errors],
581 [AC_DEFINE(HAVE_STRUCT_NET_DEVICE_STATS, 1, [Define if struct net_device_stats exists and is usable.])],
582 [],
583 [
584 #include <sys/types.h>
585 #include <sys/socket.h>
586 #include <linux/if.h>
587 #include <linux/netdevice.h>
588 ])
590 AC_CHECK_MEMBERS([struct udphdr.uh_dport, struct udphdr.uh_sport], [], [],
591 [#if HAVE_STDINT_H
592 # include <stdint.h>
593 #endif
594 #if HAVE_SYS_TYPES_H
595 # include <sys/types.h>
596 #endif
597 #if HAVE_NETINET_IN_SYSTM_H
598 # include <netinet/in_systm.h>
599 #endif
600 #if HAVE_NETINET_IN_H
601 # include <netinet/in.h>
602 #endif
603 #if HAVE_NETINET_IP_H
604 # include <netinet/ip.h>
605 #endif
606 #if HAVE_NETINET_UDP_H
607 # include <netinet/udp.h>
608 #endif
609 ])
610 AC_CHECK_MEMBERS([struct udphdr.dest, struct udphdr.source], [], [],
611 [#if HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #if HAVE_SYS_TYPES_H
615 # include <sys/types.h>
616 #endif
617 #if HAVE_NETINET_IN_SYSTM_H
618 # include <netinet/in_systm.h>
619 #endif
620 #if HAVE_NETINET_IN_H
621 # include <netinet/in.h>
622 #endif
623 #if HAVE_NETINET_IP_H
624 # include <netinet/ip.h>
625 #endif
626 #if HAVE_NETINET_UDP_H
627 # include <netinet/udp.h>
628 #endif
629 ])
631 AC_MSG_CHECKING([for kernel type ($host_os)])
632 case $host_os in
633 *linux*)
634 AC_DEFINE([KERNEL_LINUX], 1, [True if program is to be compiled for a Linux kernel])
635 ac_system="Linux"
636 ;;
637 *solaris*)
638 AC_DEFINE([KERNEL_SOLARIS], 1, [True if program is to be compiled for a Solaris kernel])
639 ac_system="Solaris"
640 ;;
641 *)
642 ac_system="unknown"
643 esac
644 AC_MSG_RESULT([$ac_system])
646 with_libresolv="yes"
647 AC_CHECK_LIB(resolv, res_search,
648 [
649 AC_DEFINE(HAVE_LIBRESOLV, 1, [Define to 1 if you have the 'resolv' library (-lresolv).])
650 ],
651 [with_libresolv="no"])
652 AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
655 m4_divert_once([HELP_WITH], [
656 collectd additional packages:])
658 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
659 AC_ARG_WITH(rrdtool, [AS_HELP_STRING([--with-rrdtool@<:@=PREFIX@:>@], [Path to rrdtool.])],
660 [ if test "x$withval" != "xno" && test "x$withval" != "xyes"
661 then
662 LDFLAGS="$LDFLAGS -L$withval/lib"
663 CPPFLAGS="$CPPFLAGS -I$withval/include"
664 with_rrdtool="yes"
665 fi
666 ], [with_rrdtool="yes"])
667 if test "x$with_rrdtool" = "xyes"
668 then
669 AC_CHECK_LIB(rrd, rrd_update,
670 [
671 AC_DEFINE(HAVE_LIBRRD, 1, [Define to 1 if you have the rrd library (-lrrd).])
672 ],
673 [with_rrdtool="no (librrd not found)"], [-lm])
674 fi
675 if test "x$with_rrdtool" = "xyes"
676 then
677 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no (rrd.h not found)"])
678 fi
679 if test "x$with_rrdtool" = "xyes"
680 then
681 collect_rrdtool=1
682 else
683 collect_rrdtool=0
684 fi
685 AC_DEFINE_UNQUOTED(COLLECT_RRDTOOL, [$collect_rrdtool],
686 [Wether or not to use rrdtool library])
687 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
689 AC_ARG_WITH(libpthread, [AS_HELP_STRING([--with-libpthread=@<:@=PREFIX@:>@], [Path to libpthread.])],
690 [ if test "x$withval" != "xno" -a "x$withval" != "xyes"
691 then
692 LDFLAGS="$LDFLAGS -L$withval/lib"
693 CPPFLAGS="$CPPFLAGS -I$withval/include"
694 with_libpthread="yes"
695 else
696 if test "x$withval" = "xno"
697 then
698 with_libpthread="no (disabled)"
699 fi
700 fi
701 ], [with_libpthread="yes"])
702 if test "x$with_libpthread" = "xyes"
703 then
704 AC_CHECK_LIB(pthread, pthread_create, [with_libpthread="yes"], [with_libpthread="no (libpthread not found)"], [])
705 fi
706 if test "x$with_libpthread" = "xyes"
707 then
708 AC_CHECK_HEADERS(pthread.h,, [with_libpthread="no (pthread.h not found)"])
709 fi
710 if test "x$with_libpthread" = "xyes"
711 then
712 collect_pthread=1
713 else
714 collect_pthread=0
715 fi
716 AC_DEFINE_UNQUOTED(HAVE_LIBPTHREAD, [$collect_pthread],
717 [Wether or not to use pthread (POSIX threads) library])
718 AM_CONDITIONAL(BUILD_WITH_LIBPTHREAD, test "x$with_libpthread" = "xyes")
720 if test "$ac_system" = "Solaris"
721 then
722 with_kstat="yes"
723 with_devinfo="yes"
724 else
725 with_kstat="no (Solaris only)"
726 with_devinfo="no (Solaris only)"
727 fi
729 if test "x$with_kstat" = "xyes"
730 then
731 AC_CHECK_LIB(kstat, kstat_open, [with_kstat="yes"], [with_kstat="no (libkstat not found)"], [])
732 fi
733 if test "x$with_kstat" = "xyes"
734 then
735 AC_CHECK_LIB(devinfo, di_init, [with_devinfo="yes"], [with_devinfo="no (not found)"], [])
736 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
737 fi
738 if test "x$with_kstat" = "xyes"
739 then
740 AC_DEFINE(HAVE_LIBKSTAT, 1,
741 [Define to 1 if you have the 'kstat' library (-lkstat)])
742 fi
743 AM_CONDITIONAL(BUILD_WITH_LIBKSTAT, test "x$with_kstat" = "xyes")
744 AM_CONDITIONAL(BUILD_WITH_LIBDEVINFO, test "x$with_devinfo" = "xyes")
746 ### BEGIN of check for libcurl ###
747 with_curl_config="curl-config"
748 with_curl_prefix=0
749 with_curl_libs=""
750 AC_ARG_WITH(libcurl, [AS_HELP_STRING([--with-libcurl@<:@=PREFIX@:>@], [Path to libcurl.])],
751 [
752 if test "x$withval" != "xno" -a "x$withval" != "xyes"
753 then
754 if test -x "$withval/bin/curl-config"
755 then
756 with_curl_config="$withval/bin/curl-config"
757 with_curl_prefix=1
758 fi
759 fi
760 if test "x$withval" = "xno"
761 then
762 with_libcurl="no"
763 else
764 with_libcurl="yes"
765 fi
766 ],
767 [
768 with_libcurl="yes"
769 ])
770 if test "x$with_libcurl" = "xyes"
771 then
772 with_curl_libs=`$with_curl_config --libs 2>/dev/null`
773 curl_config_status=$?
775 if test $curl_config_status -ne 0
776 then
777 with_libcurl="no"
778 else
779 AC_CHECK_LIB(curl, curl_easy_init,
780 [
781 BUILD_WITH_LIBCURL_LIBS="$with_curl_libs"
782 AC_SUBST(BUILD_WITH_LIBCURL_LIBS)
783 ],
784 [
785 with_libcurl="no"
786 ],
787 [$with_curl_libs])
788 fi
789 fi
790 if test "x$with_libcurl" = "xyes" -a $with_curl_prefix -ne 0
791 then
792 with_curl_prefix=`$with_curl_config --libs 2>/dev/null`
793 curl_config_status=$?
795 if test $curl_config_status -ne 0
796 then
797 with_libcurl="no"
798 else
799 if test -d "$with_curl_prefix/include"
800 then
801 CPPFLAGS="$CPPFLAGS -I$with_curl_prefix/include"
802 fi
803 fi
804 fi
806 with_libcurl_numeric=0
807 if test "x$with_libcurl" = "xyes"
808 then
809 with_libcurl_numeric=1
810 fi
811 AC_DEFINE_UNQUOTED(HAVE_LIBCURL, [$with_libcurl_numeric], [Define to 1 if you have the 'curl' library (-lcurl).])
812 AM_CONDITIONAL(BUILD_WITH_LIBCURL, test "x$with_libcurl" = "xyes")
813 ### END of check for libcurl ###
815 with_libiokit="no"
816 collectd_libiokit=0
817 AC_CHECK_LIB(IOKit, IOServiceGetMatchingServices,
818 [
819 with_libiokit="yes"
820 collectd_libiokit=1
821 ],
822 [
823 with_libiokit="no"
824 collectd_libiokit=0
825 ])
826 AC_DEFINE_UNQUOTED(COLLECT_LIBIOKIT, [$collect_libiokit], [Wether or not to use the IOKit library])
827 AM_CONDITIONAL(BUILD_WITH_LIBIOKIT, test "x$with_libiokit" = "xyes")
829 with_libstatgrab="yes"
830 with_libdevstat="no"
831 AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
832 [
833 if test "x$withval" != "xno" -a "x$withval" != "xyes"
834 then
835 LDFLAGS="$LDFLAGS -L$withval/lib"
836 CPPFLAGS="$CPPFLAGS -I$withval/include"
837 with_libstatgrab="yes"
838 fi
839 ],
840 [
841 if test "x$ac_system" == "xunknown"
842 then
843 with_libstatgrab="yes"
844 else
845 with_libstatgrab="no"
846 fi
847 ])
848 if test "x$with_libstatgrab" = "xyes"
849 then
850 AC_CHECK_LIB(statgrab, sg_init, [with_libstatgrab="yes"], [with_libstatgrab="no (libstatgrab not found)"])
851 fi
852 if test "x$with_libstatgrab" = "xyes"
853 then
854 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
855 fi
856 if test "x$with_libstatgrab" = "xyes"
857 then
858 AC_CHECK_LIB(devstat, getdevs, [with_libdevstat="yes"], [with_libdevstat="no"])
859 fi
860 if test "x$with_libstatgrab" = "xyes"
861 then
862 collect_libstatgrab=1
863 else
864 collect_libstatgrab=0
865 fi
866 AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
867 [Wether or not to use statgrab library])
868 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
869 AM_CONDITIONAL(BUILD_WITH_LIBDEVSTAT, test "x$with_libdevstat" = "xyes")
871 AC_CHECK_LIB(kvm, kvm_getswapinfo, [with_libkvm="yes"], [with_libkvm="no"])
872 if test "x$with_libkvm" = "xyes"
873 then
874 AC_DEFINE(HAVE_LIBKVM, 1, [Define to 1 if you have the 'kvm' library (-lkvm)])
875 fi
876 AM_CONDITIONAL(BUILD_WITH_LIBKVM, test "x$with_libkvm" = "xyes")
878 AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])],
879 [
880 if test "x$withval" != "xno" && test "x$withval" != "xyes"
881 then
882 LDFLAGS="$LDFLAGS -L$withval/lib"
883 CPPFLAGS="$CPPFLAGS -I$withval/include"
884 with_lm_sensors="yes"
885 fi
886 ],
887 [
888 if test "x$ac_system" = "xLinux"
889 then
890 with_lm_sensors="yes"
891 else
892 with_lm_sensors="no"
893 fi
894 ])
895 if test "x$with_lm_sensors" = "xyes"
896 then
897 AC_CHECK_LIB(sensors, sensors_init,
898 [
899 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
900 ],
901 [with_lm_sensors="no (libsensors not found)"])
902 fi
903 if test "x$with_lm_sensors" = "xyes"
904 then
905 AC_CHECK_HEADERS(sensors/sensors.h,
906 [
907 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
908 ],
909 [with_lm_sensors="no (sensors/sensors.h not found)"])
910 fi
911 if test "x$with_lm_sensors" = "xyes"
912 then
913 collect_lm_sensors=1
914 else
915 collect_lm_sensors=0
916 fi
917 AC_DEFINE_UNQUOTED(COLLECT_LM_SENSORS, [$collect_lm_sensors],
918 [Wether or not to use sensors library])
919 AM_CONDITIONAL(BUILD_WITH_LM_SENSORS, test "x$with_lm_sensors" = "xyes")
921 AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to libmysql.])],
922 [
923 if test "x$withval" != "xno" && test "x$withval" != "xyes"
924 then
925 LDFLAGS="$LDFLAGS -L$withval/lib"
926 CPPFLAGS="$CPPFLAGS -I$withval/include"
927 with_libmysql="yes"
928 fi
929 ],
930 [
931 with_libmysql="yes"
932 ])
933 if test "x$with_libmysql" = "xyes"
934 then
935 AC_CHECK_LIB(mysqlclient, mysql_init,
936 [
937 AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1, [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
938 ], [with_libmysql="no (libmysql not found)"])
939 fi
940 if test "x$with_libmysql" = "xyes"
941 then
942 AC_CHECK_HEADERS(mysql/mysql.h,
943 [
944 AC_DEFINE(HAVE_MYSQL_MYSQL_H, 1, [Define to 1 if you have the <mysql/mysql.h> header file.])
945 ], [with_libmysql="no (mysql/mysql.h not found)"])
946 fi
947 if test "x$with_libmysql" = "xyes"
948 then
949 collect_libmysql=1
950 else
951 collect_libmysql=0
952 fi
953 AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libmysql],
954 [Wether or not to use mysql library])
955 AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libmysql" = "xyes")
957 #with_liboping="yes"
958 with_own_liboping="no"
959 liboping_LDFLAGS="$LDFLAGS"
960 liboping_CPPFLAGS="$CPPFLAGS"
961 AC_ARG_WITH(liboping, [AS_HELP_STRING([--with-liboping@<:@=PREFIX@:>@], [Path to liboping.])],
962 [
963 if test "x$withval" != "xno" && test "x$withval" != "xyes"
964 then
965 if test -d "$withval/lib"
966 then
967 liboping_LDFLAGS="$LDFLAGS -L$withval/lib"
968 fi
969 if test -d "$withval/include"
970 then
971 liboping_CPPFLAGS="$CPPFLAGS -I$withval/include"
972 fi
973 fi
974 if test "x$withval" = "xno"
975 then
976 with_liboping="no"
977 with_own_liboping="no"
978 fi
979 ],
980 [
981 #753
982 with_liboping="yes"
983 ])
985 if test "x$with_liboping" = "xyes"
986 then
987 save_LDFLAGS="$LDFLAGS"
988 save_CPPFLAGS="$CPPFLAGS"
989 LDFLAGS="$liboping_LDFLAGS"
990 CPPFLAGS="$liboping_CPPFLAGS"
991 AC_CHECK_LIB(oping, ping_construct,
992 [
993 with_liboping="yes"
994 with_own_liboping="no"
995 ],
996 [
997 with_liboping="yes"
998 with_own_liboping="yes"
999 LDFLAGS="$save_LDFLAGS"
1000 CPPFLAGS="$save_CPPFLAGS"
1001 ])
1002 fi
1003 AM_CONDITIONAL(BUILD_WITH_LIBOPING, test "x$with_liboping" = "xyes")
1004 AM_CONDITIONAL(BUILD_WITH_OWN_LIBOPING, test "x$with_own_liboping" = "xyes")
1005 if test "x$with_liboping" = "xyes" -a "x$with_own_liboping" = "xyes"
1006 then
1007 with_liboping="yes (shipped version)"
1008 fi
1010 AC_ARG_WITH(libpcap, [AS_HELP_STRING([--with-libpcap@<:@=PREFIX@:>@], [Path to libpcap.])],
1011 [
1012 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1013 then
1014 LDFLAGS="$LDFLAGS -L$withval/lib"
1015 CPPFLAGS="$CPPFLAGS -I$withval/include"
1016 with_libpcap="yes"
1017 fi
1018 ],
1019 [
1020 with_libpcap="yes"
1021 ])
1022 if test "x$with_libpcap" = "xyes"
1023 then
1024 AC_CHECK_LIB(pcap, pcap_open_live,
1025 [
1026 AC_DEFINE(HAVE_LIBPCAP, 1, [Define to 1 if you have the pcap library (-lpcap).])
1027 ], [with_libpcap="no (libpcap not found)"])
1028 fi
1029 if test "x$with_libpcap" = "xyes"
1030 then
1031 AC_CHECK_HEADERS(pcap.h,
1032 [
1033 AC_DEFINE(HAVE_PCAP_H, 1, [Define to 1 if you have the <pcap.h> header file.])
1034 ], [with_libpcap="no (pcap.h not found)"])
1035 fi
1036 if test "x$with_libpcap" = "xyes"
1037 then
1038 collect_libpcap=1
1039 else
1040 collect_libpcap=0
1041 fi
1042 AC_DEFINE_UNQUOTED(COLLECT_LIBPCAP, [$collect_libpcap],
1043 [Wether or not to use the pcap library])
1044 AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes")
1046 AC_ARG_WITH(libiptc, [AS_HELP_STRING([--with-libiptc@<:@=PREFIX@:>@], [Path to libiptc.])],
1047 [
1048 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1049 then
1050 LDFLAGS="$LDFLAGS -L$withval/lib"
1051 CPPFLAGS="$CPPFLAGS -I$withval/include"
1052 with_libiptc="yes"
1053 fi
1054 ],
1055 [
1056 if test "x$ac_system" = "xLinux"
1057 then
1058 with_libiptc="yes"
1059 else
1060 with_libiptc="no (Linux only)"
1061 fi
1062 ])
1063 if test "x$with_libiptc" = "xyes"
1064 then
1065 AC_CHECK_LIB(iptc, iptc_init,
1066 [
1067 AC_DEFINE(HAVE_LIBIPTC, 1, [Define to 1 if you have the iptc library (-liptc).])
1068 ], [with_libiptc="no (libiptc not found)"])
1069 fi
1070 if test "x$with_libiptc" = "xyes"
1071 then
1072 AC_CHECK_HEADERS(libiptc/libiptc.h,
1073 [
1074 AC_DEFINE(HAVE_LIBIPTC_LIBIPTC_H, 1, [Define to 1 if you have the <libiptc/libiptc.h> header file.])
1075 ], [with_libiptc="no (libiptc/libiptc.h not found)"])
1076 fi
1077 if test "x$with_libiptc" = "xyes"
1078 then
1079 collect_libiptc=1
1080 else
1081 collect_libiptc=0
1082 fi
1083 AM_CONDITIONAL(BUILD_WITH_LIBIPTC, test "x$with_libiptc" = "xyes")
1085 AC_ARG_WITH(libupsclient, [AS_HELP_STRING([--with-libupsclient@<:@=PREFIX@:>@], [Path to libupsclient.])],
1086 [
1087 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1088 then
1089 LDFLAGS="$LDFLAGS -L$withval/lib"
1090 CPPFLAGS="$CPPFLAGS -I$withval/include"
1091 with_libupsclient="yes"
1092 fi
1093 ],
1094 [
1095 with_libupsclient="yes"
1096 ])
1097 if test "x$with_libupsclient" = "xyes"
1098 then
1099 AC_CHECK_LIB(upsclient, upscli_connect,
1100 [
1101 AC_DEFINE(HAVE_LIBUPSCLIENT, 1, [Define to 1 if you have the upsclient library (-lupsclient).])
1102 ], [with_libupsclient="no (libupsclient not found)"])
1103 fi
1104 if test "x$with_libupsclient" = "xyes"
1105 then
1106 AC_CHECK_HEADERS(upsclient.h,
1107 [
1108 AC_DEFINE(HAVE_UPSCLIENT_H, 1, [Define to 1 if you have the <upsclient.h> header file.])
1109 ], [with_libupsclient="no (upsclient.h not found)"])
1110 fi
1111 AM_CONDITIONAL(BUILD_WITH_LIBUPSCLIENT, test "x$with_libupsclient" = "xyes")
1113 # Check for enabled/disabled features
1114 #
1116 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
1117 # ------------------------------------------------------------
1118 dnl
1119 m4_define([my_toupper], [m4_translit([$1], m4_defn([m4_cr_letters]), m4_defn([m4_cr_LETTERS]))])
1120 dnl
1121 AC_DEFUN(
1122 [AC_COLLECTD],
1123 [
1124 m4_if([$1], [], [AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 1st argument must not be empty])])dnl
1125 m4_if(
1126 [$2],
1127 [enable],
1128 [dnl
1129 m4_define([EnDis],[disabled])dnl
1130 m4_define([YesNo],[no])dnl
1131 ],dnl
1132 [m4_if(
1133 [$2],
1134 [disable],
1135 [dnl
1136 m4_define([EnDis],[enabled])dnl
1137 m4_define([YesNo],[yes])dnl
1138 ],
1139 [dnl
1140 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 2nd argument must be either enable or disable])dnl
1141 ]dnl
1142 )]dnl
1143 )dnl
1144 m4_if([$3], [feature], [],
1145 [m4_if(
1146 [$3], [module], [],
1147 [dnl
1148 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 3rd argument must be either feature or disable])dnl
1149 ]dnl
1150 )]dnl
1151 )dnl
1152 AC_ARG_ENABLE(
1153 [$1],
1154 AS_HELP_STRING([--$2-$1], [$2 $4 (EnDis by def)]),
1155 [],
1156 enable_$1='[YesNo]'dnl
1157 )# AC_ARG_ENABLE
1158 if test "x$enable_$1" = "xno"
1159 then
1160 collectd_$1=0
1161 else
1162 if test "x$enable_$1" = "xyes"
1163 then
1164 collectd_$1=1
1165 else
1166 AC_MSG_NOTICE([please specify either --enable-$1 or --disable-$1; enabling $1.])
1167 collectd_$1=1
1168 enable_$1='yes'
1169 fi
1170 fi
1171 AC_DEFINE_UNQUOTED([COLLECT_]my_toupper([$1]), [$collectd_$1], [wether or not to enable $3 $4])
1172 AM_CONDITIONAL([BUILD_]my_toupper([$3])[_]my_toupper([$1]), [test "x$enable_$1" = "xyes"])dnl
1173 ]dnl
1174 )# AC_COLLECTD(name, enable/disable, info-text, feature/module)
1176 m4_divert_once([HELP_ENABLE], [
1177 collectd features:])
1178 AC_COLLECTD([debug], [enable], [feature], [debugging])
1179 AC_COLLECTD([daemon], [disable], [feature], [daemon mode])
1180 AC_COLLECTD([getifaddrs],[enable], [feature], [getifaddrs under Linux])
1182 m4_divert_once([HELP_ENABLE], [
1183 collectd modules:])
1184 AC_COLLECTD([apache], [disable], [module], [Apache httpd statistics])
1185 AC_COLLECTD([apcups], [disable], [module], [Statistics of UPSes by APC])
1186 AC_COLLECTD([apple_sensors], [disable], [module], [Apple's hardware sensors])
1187 AC_COLLECTD([battery], [disable], [module], [battery statistics])
1188 AC_COLLECTD([cpu], [disable], [module], [cpu usage statistics])
1189 AC_COLLECTD([cpufreq], [disable], [module], [system cpu frequency statistics])
1190 AC_COLLECTD([disk], [disable], [module], [disk/partition statistics])
1191 AC_COLLECTD([csv], [disable], [module], [csv output plugin])
1192 AC_COLLECTD([df], [disable], [module], [df statistics])
1193 AC_COLLECTD([dns], [disable], [module], [dns statistics])
1194 AC_COLLECTD([email], [disable], [module], [email statistics])
1195 AC_COLLECTD([entropy], [disable], [module], [entropy statistics])
1196 AC_COLLECTD([exec], [disable], [module], [exec of external programs])
1197 AC_COLLECTD([hddtemp], [disable], [module], [hdd temperature statistics])
1198 AC_COLLECTD([interface], [disable], [module], [interface statistics])
1199 AC_COLLECTD([iptables], [disable], [module], [IPtables statistics])
1200 AC_COLLECTD([irq], [disable], [module], [irq statistics])
1201 AC_COLLECTD([load], [disable], [module], [system load statistics])
1202 AC_COLLECTD([mbmon], [disable], [module], [motherboard monitor statistics])
1203 AC_COLLECTD([memory], [disable], [module], [memory statistics])
1204 AC_COLLECTD([multimeter],[disable], [module], [multimeter statistics])
1205 AC_COLLECTD([mysql], [disable], [module], [mysql statistics])
1206 AC_COLLECTD([network], [disable], [module], [network functionality])
1207 AC_COLLECTD([nfs], [disable], [module], [nfs statistics])
1208 AC_COLLECTD([ntpd], [disable], [module], [ntpd statistics])
1209 AC_COLLECTD([nut], [disable], [module], [network UPS tools statistics])
1210 AC_COLLECTD([ping], [disable], [module], [ping statistics])
1211 AC_COLLECTD([processes], [disable], [module], [processes statistics])
1212 AC_COLLECTD([sensors], [disable], [module], [lm_sensors statistics])
1213 AC_COLLECTD([serial], [disable], [module], [serial statistics])
1214 AC_COLLECTD([logfile], [disable], [module], [logfile log facility])
1215 AC_COLLECTD([swap], [disable], [module], [swap statistics])
1216 AC_COLLECTD([syslog], [disable], [module], [syslog log facility])
1217 AC_COLLECTD([tape], [disable], [module], [tape statistics])
1218 AC_COLLECTD([unixsock], [disable], [module], [UNIX socket plugin])
1219 AC_COLLECTD([users], [disable], [module], [user count statistics])
1220 AC_COLLECTD([vserver], [disable], [module], [vserver statistics])
1221 AC_COLLECTD([wireless], [disable], [module], [wireless link statistics])
1223 AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/liboconfig/Makefile src/liboping/Makefile)
1225 cat <<EOF;
1227 Configuration:
1228 Libraries:
1229 libcurl . . . . . . $with_libcurl
1230 libiokit . . . . . $with_libiokit
1231 libiptc . . . . . . $with_libiptc
1232 libkstat . . . . . $with_kstat
1233 libmysql . . . . . $with_libmysql
1234 liboping . . . . . $with_liboping
1235 libpcap . . . . . . $with_libpcap
1236 libpthread . . . . $with_libpthread
1237 librrd . . . . . . $with_rrdtool
1238 libsensors . . . . $with_lm_sensors
1239 libstatgrab . . . . $with_libstatgrab
1240 libupsclient . . . $with_libupsclient
1242 Features:
1243 daemon mode . . . . $enable_daemon
1244 debug . . . . . . . $enable_debug
1246 Modules:
1247 apache . . . . . . $enable_apache
1248 apcups . . . . . . $enable_apcups
1249 apple_sensors . . . $enable_apple_sensors
1250 battery . . . . . . $enable_battery
1251 cpu . . . . . . . . $enable_cpu
1252 cpufreq . . . . . . $enable_cpufreq
1253 csv . . . . . . . . $enable_csv
1254 df . . . . . . . . $enable_df
1255 disk . . . . . . . $enable_disk
1256 dns . . . . . . . . $enable_dns
1257 email . . . . . . . $enable_email
1258 entropy . . . . . . $enable_entropy
1259 exec . . . . . . . $enable_exec
1260 hddtemp . . . . . . $enable_hddtemp
1261 interface . . . . . $enable_interface
1262 iptables . . . . . $enable_iptables
1263 irq . . . . . . . . $enable_irq
1264 load . . . . . . . $enable_load
1265 logfile . . . . . . $enable_logfile
1266 mbmon . . . . . . . $enable_mbmon
1267 memory . . . . . . $enable_memory
1268 multimeter . . . . $enable_multimeter
1269 mysql . . . . . . . $enable_mysql
1270 network . . . . . . $enable_network
1271 nfs . . . . . . . . $enable_nfs
1272 ntpd . . . . . . . $enable_ntpd
1273 nut . . . . . . . . $enable_nut
1274 ping . . . . . . . $enable_ping
1275 processes . . . . . $enable_processes
1276 sensors . . . . . . $enable_sensors
1277 serial . . . . . . $enable_serial
1278 swap . . . . . . . $enable_swap
1279 syslog . . . . . . $enable_syslog
1280 tape . . . . . . . $enable_tape
1281 unixsock . . . . . $enable_unixsock
1282 users . . . . . . . $enable_users
1283 vserver . . . . . . $enable_vserver
1284 wireless . . . . . $enable_wireless
1286 EOF