diff options
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 e207d95b..3154af05 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]) |