diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-08-19 19:05:49 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-08-19 19:05:49 (GMT) |
commit | d5ae799b8792708cad68d57c966b562dc442dccd (patch) | |
tree | e2890c5c039f7572de2d9fae84cd67e0754ab5bc /configure.in | |
parent | c25c672eb2d17f8f10b8e28389a2fd9c91a9b81b (diff) | |
download | monitoring-plugins-d5ae799b8792708cad68d57c966b562dc442dccd.tar.gz |
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
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e207d95..3154af0 100644 --- a/configure.in +++ b/configure.in | |||
@@ -4,7 +4,7 @@ AC_PREREQ(2.50) | |||
4 | AC_INIT(nagios-plugins,1.4.0alpha2) | 4 | AC_INIT(nagios-plugins,1.4.0alpha2) |
5 | AC_CONFIG_SRCDIR(Helper.pm) | 5 | AC_CONFIG_SRCDIR(Helper.pm) |
6 | AM_INIT_AUTOMAKE | 6 | AM_INIT_AUTOMAKE |
7 | AC_CONFIG_HEADER(config.h) | 7 | AM_CONFIG_HEADER(config.h) |
8 | AC_CANONICAL_HOST | 8 | AC_CANONICAL_HOST |
9 | 9 | ||
10 | RELEASE=1 | 10 | RELEASE=1 |
@@ -1388,6 +1388,23 @@ fi | |||
1388 | dnl end if for PATH_TO_SWAPCTL | 1388 | dnl end if for PATH_TO_SWAPCTL |
1389 | fi | 1389 | fi |
1390 | 1390 | ||
1391 | dnl | ||
1392 | dnl test for swapctl system call, as found in tru64 and solaris | ||
1393 | dnl note: the way the ifdef logic in check_swap is right now, | ||
1394 | dnl this will only affect systems that don't pass one of the | ||
1395 | dnl earlier tests. | ||
1396 | dnl | ||
1397 | AC_CHECK_HEADERS([sys/swap.h sys/stat.h sys/param.h]) | ||
1398 | AC_CHECK_DECLS([swapctl],,,[ | ||
1399 | #include <sys/types.h> | ||
1400 | #include <sys/stat.h> | ||
1401 | #include <sys/swap.h> | ||
1402 | ]) | ||
1403 | dnl | ||
1404 | dnl end test for swapctl system call | ||
1405 | dnl | ||
1406 | |||
1407 | |||
1391 | if test "x$ac_cv_have_swap" != "x" | 1408 | if test "x$ac_cv_have_swap" != "x" |
1392 | then | 1409 | then |
1393 | AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) | 1410 | AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) |