From d5ae799b8792708cad68d57c966b562dc442dccd Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 19 Aug 2004 19:05:49 +0000 Subject: Patch for tru64 using swapctl calls (Sean Finney) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@890 f882894a-f735-0410-b71e-b25c423dba1c --- configure.in | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index e207d95b..3154af05 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ AC_PREREQ(2.50) AC_INIT(nagios-plugins,1.4.0alpha2) AC_CONFIG_SRCDIR(Helper.pm) AM_INIT_AUTOMAKE -AC_CONFIG_HEADER(config.h) +AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST RELEASE=1 @@ -1388,6 +1388,23 @@ fi dnl end if for PATH_TO_SWAPCTL fi +dnl +dnl test for swapctl system call, as found in tru64 and solaris +dnl note: the way the ifdef logic in check_swap is right now, +dnl this will only affect systems that don't pass one of the +dnl earlier tests. +dnl +AC_CHECK_HEADERS([sys/swap.h sys/stat.h sys/param.h]) +AC_CHECK_DECLS([swapctl],,,[ + #include + #include + #include + ]) +dnl +dnl end test for swapctl system call +dnl + + if test "x$ac_cv_have_swap" != "x" then AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) -- cgit v1.2.3-74-g34f1