96ff63f1d4ed80695780d5af999a317dee7786d1
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 3.5.0)
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
19 dnl configure libtool
20 AC_DISABLE_STATIC
21 AC_LIBLTDL_CONVENIENCE
22 AC_SUBST(LTDLINCL)
23 AC_SUBST(LIBLTDL)
24 AC_LIBTOOL_DLOPEN
25 AC_PROG_LIBTOOL
26 #AC_PROG_RANLIB
27 AC_CONFIG_SUBDIRS(libltdl)
29 #
30 # Checks for header files.
31 #
32 AC_HEADER_SYS_WAIT
33 AC_HEADER_DIRENT
34 AC_CHECK_HEADERS(fcntl.h)
35 AC_CHECK_HEADERS(signal.h)
36 AC_CHECK_HEADERS(sys/socket.h)
37 AC_CHECK_HEADERS(sys/select.h)
38 AC_CHECK_HEADERS(netdb.h)
39 AC_CHECK_HEADERS(sys/resource.h)
40 AC_CHECK_HEADERS(sys/param.h)
41 AC_CHECK_HEADERS(errno.h)
42 AC_CHECK_HEADERS(syslog.h)
44 # For cpu modules
45 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h)
47 # For load module
48 AC_CHECK_HEADERS(sys/loadavg.h)
50 # For ping module
51 AC_CHECK_HEADERS(arpa/inet.h)
52 AC_CHECK_HEADERS(netinet/in.h)
54 # For users module
55 AC_CHECK_HEADERS(utmp.h)
56 AC_CHECK_HEADERS(utmpx.h)
58 # For quota module
59 AC_CHECK_HEADERS(grp.h pwd.h sys/ucred.h)
60 AC_CHECK_HEADERS(ctype.h)
61 AC_CHECK_HEADERS(limits.h)
62 AC_CHECK_HEADERS(sys/quota.h)
63 AC_CHECK_HEADERS(xfs/xqm.h)
65 # For mount interface
66 AC_CHECK_HEADERS(fs_info.h)
67 AC_CHECK_HEADERS(fshelp.h)
68 AC_CHECK_HEADERS(paths.h)
69 AC_CHECK_HEADERS(mntent.h)
70 AC_CHECK_HEADERS(mnttab.h)
71 AC_CHECK_HEADERS(sys/fstyp.h)
72 AC_CHECK_HEADERS(sys/fs_types.h)
73 AC_CHECK_HEADERS(sys/mntent.h)
74 AC_CHECK_HEADERS(sys/mnttab.h)
75 AC_CHECK_HEADERS(sys/mount.h)
76 AC_CHECK_HEADERS(sys/statfs.h)
77 AC_CHECK_HEADERS(sys/vfs.h)
78 AC_CHECK_HEADERS(sys/vfstab.h)
80 # For debugging interface (variable number of arguments)
81 AC_CHECK_HEADERS(stdarg.h)
83 dnl Checking for libraries
84 AC_CHECK_LIB(m, ext)
86 #
87 # Checks for typedefs, structures, and compiler characteristics.
88 #
89 AC_C_CONST
90 AC_TYPE_PID_T
91 AC_TYPE_SIZE_T
92 AC_HEADER_TIME
94 #
95 # Checks for library functions.
96 #
97 AC_PROG_GCC_TRADITIONAL
98 AC_CHECK_FUNCS(gettimeofday select strdup strtol)
99 AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket))
100 AC_CHECK_FUNCS(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname))
101 AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
102 AC_CHECK_FUNCS(strncasecmp strcasecmp)
103 AC_CHECK_FUNCS(openlog syslog closelog)
105 # For cpu module
106 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
108 # For load module
109 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
111 # For users module
112 have_getutent="no"
113 AC_CHECK_FUNCS(getutent getutxent, [have_getutent="yes"])
115 # For quota module
116 AC_CHECK_FUNCS(quotactl)
117 AC_CHECK_FUNCS(getgrgid getpwuid)
119 # For mount interface
120 AC_CHECK_FUNCS(getfsent getvfsent listmntent)
121 AC_FUNC_GETMNTENT
122 if test "x$ac_cv_func_getmntent" = 'xyes'; then
123 saveCFLAGS="$CFLAGS"
124 CFLAGS="-Wall -Werror $CFLAGS"
125 AC_CACHE_CHECK([whether getmntent takes one argument],
126 [fu_cv_getmntent1],
127 AC_COMPILE_IFELSE(
128 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
129 #include "$srcdir/src/utils_mount.h"]],
130 [[(void)getmntent((FILE *)NULL);]]
131 ),
132 [fu_cv_getmntent1=yes],
133 [fu_cv_getmntent1=no]
134 )
135 )
136 if test "x$fu_cv_getmntent1" = 'xno'; then
137 AC_CACHE_CHECK([whether getmntent takes two arguments],
138 [fu_cv_getmntent2],
139 AC_COMPILE_IFELSE(
140 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
141 #include "$srcdir/src/utils_mount.h"]],
142 [[(void)getmntent((FILE *)NULL,
143 (struct mnttab *)NULL);]]
144 ),
145 [fu_cv_getmntent2=yes],
146 [fu_cv_getmntent2=no]
147 )
148 )
149 fi
150 CFLAGS="$saveCFLAGS"
151 fi
152 if test "x$fu_cv_getmntent1" = 'xyes'; then
153 AC_DEFINE(HAVE_GETMNTENT1,
154 1,
155 [Define if there is a function named getmntent
156 for reading the list of mounted filesystems, and
157 that function takes a single argument. (4.3BSD,
158 SunOS, HP-UX, Dynix, Irix, Linux)]
159 )
160 fi
161 if test "x$fu_cv_getmntent2" = 'xyes'; then
162 AC_DEFINE(HAVE_GETMNTENT2,
163 1,
164 [Define if there is a function named getmntent
165 for reading the list of mounted filesystems, and
166 that function takes two arguments. (SVR4)]
167 )
168 fi
170 AC_MSG_CHECKING([for kernel type ($host_os)])
171 case $host_os in
172 *linux*)
173 AC_DEFINE([KERNEL_LINUX], [], [True if program is to be compiled for a Linux kernel])
174 ac_system="Linux"
175 ;;
176 *solaris*)
177 AC_DEFINE([KERNEL_SOLARIS], [], [True if program is to be compiled for a Solaris kernel])
178 ac_system="Solaris"
179 ;;
180 *)
181 ac_system="unknown"
182 esac
183 AC_MSG_RESULT([$ac_system])
185 dnl Checks for libraries.
186 AC_CHECK_LIB(socket, socket)
187 AC_CHECK_LIB(resolv, res_search)
189 m4_divert_once([HELP_WITH], [
190 collectd additional packages:])
192 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
193 AC_ARG_WITH(rrdtool, AC_HELP_STRING([--with-rrdtool=PFX], [Path to rrdtool.]),
194 [ if test "x$withval" != "xno" -a "x$withval" != "xyes"
195 then
196 LDFLAGS="$LDFLAGS -L$withval/lib"
197 CPPFLAGS="$CPPFLAGS -I$withval/include"
198 with_rrdtool="yes"
199 fi
200 ], [with_rrdtool="yes"])
201 if test "x$with_rrdtool" = "xyes"
202 then
203 AC_CHECK_LIB(rrd, rrd_update,, [with_rrdtool="no"], [-lm])
204 fi
205 if test "x$with_rrdtool" = "xyes"
206 then
207 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no"])
208 fi
209 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
211 #AC_ARG_WITH(pth, AC_HELP_STRING([--with-pth=PFX], [Path to pth (experimental).]),
212 #[ if test "x$withval" != "xno" -a "x$withval" != "xyes"
213 # then
214 # LDFLAGS="$LDFLAGS -L$withval/lib"
215 # CPPFLAGS="$CPPFLAGS -I$withval/include"
216 # with_pth="yes"
217 # fi
218 #], [with_pth="no"])
219 #if test "x$with_pth" = "xyes"
220 #then
221 # AC_CHECK_LIB(pth, pth_init,, [with_pth="no"], [])
222 #fi
223 #if test "x$with_pth" = "xyes"
224 #then
225 # AC_CHECK_HEADERS(pth.h,, [with_pth="no"])
226 #fi
227 #if test "x$with_pth" = "xyes"
228 #then
229 # collect_pth=1
230 #else
231 # collect_pth=0
232 #fi
233 #AC_DEFINE_UNQUOTED(COLLECT_PTH, [$collect_pth],
234 # [Wether or not to use pth (portable threads) library])
235 #AM_CONDITIONAL(BUILD_WITH_PTH, test "x$with_pth" = "xyes")
237 if test "$ac_system" = "Solaris"
238 then
239 with_kstat="yes"
240 AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (not found)"])
241 AC_CHECK_LIB(devinfo, di_init)
242 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
243 else
244 with_kstat="no (Solaris only)"
245 fi
247 AC_ARG_WITH(libstatgrab, AC_HELP_STRING([--with-libstatgrab@<:@=PFX@:>@], [Path to libstatgrab.]),
248 [
249 # given..
250 if test "x$withval" != "xno"
251 then
252 if test "x$withval" != "xyes"
253 then
254 LDFLAGS="$LDFLAGS -L$withval/lib"
255 CPPFLAGS="$CPPFLAGS -I$withval/include"
256 with_libstatgrab="yes"
257 fi
258 fi
259 ],
260 [
261 # not given..
262 if test "x$ac_system" != "xunknown"
263 then
264 with_libstatgrab="no"
265 else
266 with_libstatgrab="yes"
267 fi
268 ])
269 if test "x$with_libstatgrab" = "xyes"
270 then
271 AC_CHECK_LIB(devstat, getdevs)
272 AC_CHECK_LIB(kvm, kvm_getargv)
273 AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (not found)"])
274 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (not found)"])
275 fi
277 AC_ARG_WITH(lm-sensors, AC_HELP_STRING([--with-lm-sensors@<:@=PFX@:>@], [Path to lm_sensors.]),
278 [
279 # given..
280 if test "x$withval" != "xno"
281 then
282 if test "x$withval" != "xyes"
283 then
284 LDFLAGS="$LDFLAGS -L$withval/lib"
285 CPPFLAGS="$CPPFLAGS -I$withval/include"
286 with_lm_sensors="yes"
287 fi
288 fi
289 ],
290 [
291 # not given..
292 if test "x$ac_system" = "xLinux"
293 then
294 with_lm_sensors="yes"
295 else
296 with_lm_sensors="no"
297 fi
298 ])
299 if test "x$with_lm_sensors" = "xyes"
300 then
301 AC_CHECK_LIB(sensors, sensors_init,
302 [
303 with_lm_sensors="yes"
304 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
305 ],
306 [with_lm_sensors="no (not found)"])
307 AC_CHECK_HEADERS(sensors/sensors.h,
308 [
309 with_lm_sensors="yes"
310 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
311 ],
312 [with_lm_sensors="no (not found)"])
313 fi
317 #
318 # Check for enabled/disabled features
319 #
320 m4_divert_once([HELP_ENABLE], [
321 collectd features:])
322 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
323 [Enable debugging (disabled by default)]),
324 [], [enable_debug="no"])
325 if test "x$enable_debug" = "xno"
326 then
327 collect_debug=0
328 else
329 if test "x$enable_debug" = "xyes"
330 then
331 collect_debug=1
332 else
333 AC_MSG_NOTICE([Please specify either --enable-debug or --disable-debug; Enabling debugging.])
334 collect_debug=1
335 enable_debug="yes"
336 fi
337 fi
338 AC_DEFINE_UNQUOTED(COLLECT_DEBUG, [$collect_debug],
339 [Wether or not to enable debugging])
340 AM_CONDITIONAL(BUILD_DEBUG, test "x$enable_debug" = "xyes")
342 AC_ARG_ENABLE(daemon, AC_HELP_STRING([--disable-daemon],
343 [Disable daemon mode (enabled by default)]),
344 [], [enable_daemon="yes"])
345 if test "x$enable_daemon" = "xno"
346 then
347 collect_daemon=0
348 else
349 if test "x$enable_daemon" = "xyes"
350 then
351 collect_daemon=1
352 else
353 AC_MSG_NOTICE([Please specify either --enable-daemon or --disable-daemon; Enabling daemon mode.])
354 collect_daemon=1
355 enable_daemon="yes"
356 fi
357 fi
358 AC_DEFINE_UNQUOTED(COLLECT_DAEMON, [$collect_daemon],
359 [Wether or not to enable daemon mode])
360 AM_CONDITIONAL(BUILD_DAEMON, test "x$enable_daemon" = "xyes")
362 m4_divert_once([HELP_ENABLE], [
363 collectd modules:])
364 AC_ARG_ENABLE(cpu, AC_HELP_STRING([--disable-cpu], [Disable CPU usage statistics]),, [enable_cpu="yes"])
365 if test "x$enable_cpu" != "xno"
366 then
367 if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$have_sysctlbyname" = "xyes"
368 then
369 enable_cpu="yes"
370 else
371 enable_cpu="no"
372 fi
373 fi
374 if test "x$enable_cpu" = "xno"
375 then
376 AC_DEFINE(COLLECT_CPU, 0, [Wether or not to collect CPU usage statistics])
377 fi
378 AM_CONDITIONAL(BUILD_MODULE_CPU, test "x$enable_cpu" = "xyes")
380 AC_ARG_ENABLE(cpufreq, AC_HELP_STRING([--disable-cpufreq], [Disable system cpu frequency statistics]),, [enable_cpufreq="yes"])
381 if test "x$enable_cpufreq" != "xno"
382 then
383 if test "x$ac_system" = "xLinux"
384 then
385 enable_cpufreq="yes"
386 else
387 enable_cpufreq="no"
388 fi
389 fi
390 if test "x$enable_cpufreq" = "xno"
391 then
392 AC_DEFINE(COLLECT_CPUFREQ, 0, [Wether or not to collect cpu frequency statistics])
393 fi
394 AM_CONDITIONAL(BUILD_MODULE_CPUFREQ, test "x$enable_cpufreq" = "xyes")
396 AC_ARG_ENABLE(disk, AC_HELP_STRING([--disable-disk], [Disable disk/partition statistics]),, [enable_disk="yes"])
397 if test "x$enable_disk" != "xno"
398 then
399 if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes"
400 then
401 enable_disk="yes"
402 else
403 enable_disk="no"
404 fi
405 fi
406 if test "x$enable_disk" = "xno"
407 then
408 AC_DEFINE(COLLECT_DISK, 0, [Wether or not to collect diskstats])
409 fi
410 AM_CONDITIONAL(BUILD_MODULE_DISK, test "x$enable_disk" = "xyes")
412 AC_ARG_ENABLE(hddtemp, AC_HELP_STRING([--disable-hddtemp], [Disable hdd temperature statistics]),, [enable_hddtemp="yes"])
413 if test "x$enable_hddtemp" = "xno"
414 then
415 AC_DEFINE(COLLECT_HDDTEMP, 0, [Wether or not to collect hdd temperature statistics])
416 fi
417 AM_CONDITIONAL(BUILD_MODULE_HDDTEMP, test "x$enable_hddtemp" = "xyes")
419 AC_ARG_ENABLE(load, AC_HELP_STRING([--disable-load], [Disable system load statistics]),, [enable_load="yes"])
420 if test "x$enable_load" != "xno"
421 then
422 if test "x$have_getloadavg" = "xyes" -o "x$ac_system" = "xLinux" -o "x$with_libstatgrab" = "xyes"
423 then
424 enable_load="yes"
425 else
426 enable_load="no"
427 fi
428 fi
429 if test "x$enable_load" = "xno"
430 then
431 AC_DEFINE(COLLECT_LOAD, 0, [Wether or not to collect system load statistics])
432 fi
433 AM_CONDITIONAL(BUILD_MODULE_LOAD, test "x$enable_load" = "xyes")
435 AC_ARG_ENABLE(memory, AC_HELP_STRING([--disable-memory], [Disable memory statistics]),, [enable_memory="yes"])
436 if test "x$enable_memory" != "xno"
437 then
438 if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
439 then
440 enable_memory="yes"
441 else
442 enable_memory="no"
443 fi
444 fi
445 if test "x$enable_memory" = "xno"
446 then
447 AC_DEFINE(COLLECT_MEMORY, 0, [Wether or not to collect memory statistics])
448 fi
449 AM_CONDITIONAL(BUILD_MODULE_MEMORY, test "x$enable_memory" = "xyes")
451 AC_ARG_ENABLE(nfs, AC_HELP_STRING([--disable-nfs], [Disable nfs statistics]),, [enable_nfs="yes"])
452 if test "x$enable_nfs" != "xno"
453 then
454 if test "x$ac_system" = "xLinux"
455 then
456 enable_nfs="yes"
457 else
458 enable_nfs="no"
459 fi
460 fi
461 if test "x$enable_nfs" = "xno"
462 then
463 AC_DEFINE(COLLECT_NFS, 0, [Wether or not to collect nfs statistics])
464 fi
465 AM_CONDITIONAL(BUILD_MODULE_NFS, test "x$enable_nfs" = "xyes")
467 AC_ARG_ENABLE(ping, AC_HELP_STRING([--disable-ping], [Disable ping statistics]),, [enable_ping="yes"])
468 if test "x$enable_ping" != "xno"
469 then
470 enable_ping="yes"
471 fi
472 if test "x$enable_ping" = "xno"
473 then
474 AC_DEFINE(COLLECT_PING, 0, [Wether or not to collect ping statistics])
475 fi
476 AM_CONDITIONAL(BUILD_MODULE_PING, test "x$enable_ping" = "xyes")
478 AC_ARG_ENABLE(processes, AC_HELP_STRING([--disable-processes], [Disable processes statistics]),, [enable_processes="yes"])
479 if test "x$enable_processes" != "xno"
480 then
481 if test "x$ac_system" = "xLinux"
482 then
483 enable_processes="yes"
484 else
485 enable_processes="no"
486 fi
487 fi
488 if test "x$enable_processes" = "xno"
489 then
490 AC_DEFINE(COLLECT_PROCESSES, 0, [Wether or not to collect processes statistics])
491 fi
492 AM_CONDITIONAL(BUILD_MODULE_PROCESSES, test "x$enable_processes" = "xyes")
494 #AC_ARG_ENABLE(quota, AC_HELP_STRING([--enable-quota],
495 # [Enable quota statistics (experimental, disabled by default)]),
496 # [], [enable_quota="no"])
497 #if test "x$enable_quota" = "xno"
498 #then
499 # collect_quota=0
500 #else
501 # if test "x$enable_quota" = "xyes"
502 # then
503 # collect_quota=1
504 # else
505 # AC_MSG_NOTICE([Please specify either --enable-quota or --disable-quota; Enabling quota statistics.])
506 # collect_quota=1
507 # enable_quota="yes"
508 # fi
509 #fi
510 #AC_DEFINE_UNQUOTED(COLLECT_QUOTA, [$collect_quota],
511 # [Wether or not to collect quota statistics])
512 #AM_CONDITIONAL(BUILD_MODULE_QUOTA, test "x$enable_quota" = "xyes")
514 AC_ARG_ENABLE(sensors, AC_HELP_STRING([--disable-sensors], [Disable lm_sensors statistics]),, [enable_sensors=$with_lm_sensors])
515 if test "x$enable_sensors" != "xno"
516 then
517 if test "x$with_lm_sensors" = "xyes"
518 then
519 enable_sensors="yes"
520 else
521 enable_sensors="no"
522 fi
523 fi
524 if test "x$enable_sensors" = "xno"
525 then
526 AC_DEFINE(COLLECT_SENSORS, 0, [Wether or not to collect lm_sensors statistics])
527 fi
528 AM_CONDITIONAL(BUILD_MODULE_SENSORS, test "x$enable_sensors" = "xyes")
530 AC_ARG_ENABLE(serial, AC_HELP_STRING([--disable-serial], [Disable serial statistics]),, [enable_serial="yes"])
531 if test "x$enable_serial" != "xno"
532 then
533 if test "x$ac_system" = "xLinux"
534 then
535 enable_serial="yes"
536 else
537 enable_serial="no"
538 fi
539 fi
540 if test "x$enable_serial" = "xno"
541 then
542 AC_DEFINE(COLLECT_SERIAL, 0, [Wether or not to collect serial statistics])
543 fi
544 AM_CONDITIONAL(BUILD_MODULE_SERIAL, test "x$enable_serial" = "xyes")
546 AC_ARG_ENABLE(swap, AC_HELP_STRING([--disable-swap], [Disable swap statistics]),, [enable_swap="yes"])
547 if test "x$enable_swap" != "xno"
548 then
549 if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
550 then
551 enable_swap="yes"
552 else
553 enable_swap="no"
554 fi
555 fi
556 if test "x$enable_swap" = "xno"
557 then
558 AC_DEFINE(COLLECT_SWAP, 0, [Wether or not to collect swap statistics])
559 fi
560 AM_CONDITIONAL(BUILD_MODULE_SWAP, test "x$enable_swap" = "xyes")
562 AC_ARG_ENABLE(tape, AC_HELP_STRING([--disable-tape], [Disable tape statistics]),, [enable_tape="yes"])
563 if test "x$enable_tape" != "xno"
564 then
565 if test "x$with_kstat" = "xyes"
566 then
567 enable_tape="yes"
568 else
569 enable_tape="no"
570 fi
571 fi
572 if test "x$enable_tape" = "xno"
573 then
574 AC_DEFINE(COLLECT_TAPE, 0, [Wether or not to collect tape statistics])
575 fi
576 AM_CONDITIONAL(BUILD_MODULE_TAPE, test "x$enable_tape" = "xyes")
578 AC_ARG_ENABLE(traffic, AC_HELP_STRING([--disable-traffic], [Disable system traffic statistics]),, [enable_traffic="yes"])
579 if test "x$enable_traffic" != "xno"
580 then
581 if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
582 then
583 enable_traffic="yes"
584 else
585 enable_traffic="no"
586 fi
587 fi
588 if test "x$enable_traffic" = "xno"
589 then
590 AC_DEFINE(COLLECT_TRAFFIC, 0, [Wether or not to collect network traffic statistics])
591 fi
592 AM_CONDITIONAL(BUILD_MODULE_TRAFFIC, test "x$enable_traffic" = "xyes")
594 AC_ARG_ENABLE(users, AC_HELP_STRING([--disable-users], [Disable user count statistics]),, [enable_users="yes"])
595 if test "x$enable_users" != "xno"
596 then
597 if test "x$have_getutent" = "xyes"
598 then
599 enable_users="yes"
600 else
601 enable_users="no"
602 fi
603 fi
604 if test "x$enable_users" = "xno"
605 then
606 AC_DEFINE(COLLECT_USERS, 0, [Wether or not to collect user count statistics])
607 fi
608 AM_CONDITIONAL(BUILD_MODULE_USERS, test "x$enable_users" = "xyes")
610 AC_OUTPUT(Makefile src/libping/Makefile src/Makefile)
612 cat <<EOF;
614 Configuration:
615 Libraries:
616 librrd . . . . . . $with_rrdtool
617 lm_sensors . . . . $with_lm_sensors
618 libstatgrab . . . . $with_libstatgrab
619 libkstat . . . . . $with_kstat
621 Features:
622 debug . . . . . . . $enable_debug
623 daemon mode . . . . $enable_daemon
625 Modules:
626 cpu . . . . . . . . $enable_cpu
627 cpufreq . . . . . . $enable_cpufreq
628 disk . . . . . . . $enable_disk
629 hddtemp . . . . . . $enable_hddtemp
630 load . . . . . . . $enable_load
631 memory . . . . . . $enable_memory
632 nfs . . . . . . . . $enable_nfs
633 ping . . . . . . . $enable_ping
634 processes . . . . . $enable_processes
635 sensors . . . . . . $enable_sensors
636 serial . . . . . . $enable_serial
637 swap . . . . . . . $enable_swap
638 tape . . . . . . . $enable_tape
639 traffic . . . . . . $enable_traffic
640 users . . . . . . . $enable_users
642 EOF