--- /dev/null
+AUTOMAKE_OPTIONS = dist-bzip2
+
+SUBDIRS = src
+
+EXTRA_DIST = collectd.spec contrib debian
+
+dist-hook:
+ find $(distdir) -type d -name '.svn' | xargs rm -rf
AC_CHECK_HEADERS(netdb.h)
AC_CHECK_HEADERS(syslog.h)
AC_CHECK_HEADERS(dlfcn.h)
+AC_CHECK_HEADERS(utmpx.h)
dnl Checking for libraries
AC_CHECK_LIB(m, ext)
AC_CHECK_FUNCS(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname))
AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
AC_CHECK_FUNCS(strncasecmp strcasecmp strncmp)
+AC_CHECK_FUNCS(getutxent)
AC_MSG_CHECKING([for kernel type ($host_os)])
case $host_os in
AC_ARG_ENABLE(users, AC_HELP_STRING([--disable-users], [Disable user count statistics]),, [enable_users="yes"])
if test "x$enable_users" != "xno"
then
- if test "x$ac_system" = "xLinux"
+ if test "x$ac_system" = "xLinux" -o "x$ac_system" = "xSolaris"
then
enable_users="yes"
else
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
+/* Define to 1 if you have the `getutxent' function. */
+#undef HAVE_GETUTXENT
+
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Define to 1 if you have the <utmpx.h> header file. */
+#undef HAVE_UTMPX_H
+
/* True if program is to be compiled for a Linux kernel */
#undef KERNEL_LINUX