# For load module
AC_CHECK_HEADERS(sys/loadavg.h)
+# For the swap module
+AC_CHECK_HEADERS(sys/swap.h)
+
# For users module
AC_CHECK_HEADERS(utmp.h)
AC_CHECK_HEADERS(utmpx.h)
if test "x$with_kstat" = "xyes"
then
- AC_CHECK_LIB(kstat, kstat_open, [with_kstat="yes"], [with_kstat="no (libkstat not found)"])
+ AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (libkstat not found)"])
fi
if test "x$with_kstat" = "xyes"
then
- AC_CHECK_LIB(devinfo, di_init, [with_devinfo="yes"], [with_devinfo="no (not found)"])
+ AC_CHECK_LIB(devinfo, di_init,, [with_devinfo="no (not found)"])
AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
fi
if test "x$with_kstat" = "xyes"
# define SWAP_HAVE_READ 0
#endif
-#ifdef KERNEL_SOLARIS
-#include <sys/swap.h>
-#endif /* KERNEL_SOLARIS */
+#if HAVE_SYS_SWAP_H
+# include <sys/swap.h>
+#endif
#undef MAX
#define MAX(x,y) ((x) > (y) ? (x) : (y))