diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-19 20:47:36 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-19 20:47:36 (GMT) |
commit | 5f79e3e9f62ca5487d9881973149136ba1d19d3e (patch) | |
tree | f79271783e73d4ed452f510cac3efc6d240750a6 /configure.in | |
parent | a0640011730d830c562c87ca0bc6237c404146ea (diff) | |
download | monitoring-plugins-5f79e3e9f62ca5487d9881973149136ba1d19d3e.tar.gz |
Clean up check for _SC_NPROCESSORS_ONLN
Closes #62.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/configure.in b/configure.in index 2be2a1c..bbcbb71 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1268,21 +1268,21 @@ if test -n "$ac_cv_nslookup_command"; then | |||
1268 | AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup]) | 1268 | AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup]) |
1269 | fi | 1269 | fi |
1270 | 1270 | ||
1271 | AC_MSG_CHECKING([for number of cpus]) | 1271 | AC_MSG_CHECKING([for number of online cpus]) |
1272 | AC_TRY_COMPILE([#include <unistd.h>], | 1272 | AC_TRY_COMPILE([#include <unistd.h>], |
1273 | [sysconf(_SC_NPROCESSORS_ONLN) > 0;], | 1273 | [sysconf(_SC_NPROCESSORS_ONLN) > 0;], |
1274 | AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_ONLN,1,[Define if sysconf returns number of cpus]) | 1274 | AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_ONLN,1,[Define if sysconf returns number of online cpus]) |
1275 | AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_ONLN)]), | 1275 | AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_ONLN)]), |
1276 | AC_MSG_RESULT([cannot calculate]) | 1276 | AC_MSG_RESULT([cannot calculate]) |
1277 | ) | 1277 | ) |
1278 | 1278 | ||
1279 | AC_MSG_CHECKING([for number of available cpus]) | ||
1279 | AC_TRY_COMPILE([#include <unistd.h>], | 1280 | AC_TRY_COMPILE([#include <unistd.h>], |
1280 | [sysconf(_SC_NPROCESSORS_CONF) > 0;], | 1281 | [sysconf(_SC_NPROCESSORS_CONF) > 0;], |
1281 | AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_CONF,1,[Define if sysconf returns number of cpus]) | 1282 | AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_CONF,1,[Define if sysconf returns number of available cpus]) |
1282 | AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_CONF)]), | 1283 | AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_CONF)]), |
1283 | AC_MSG_RESULT([cannot calculate]) | 1284 | AC_MSG_RESULT([cannot calculate]) |
1284 | ) | 1285 | ) |
1285 | |||
1286 | 1286 | ||
1287 | AC_PATH_PROG(PATH_TO_UPTIME,uptime) | 1287 | AC_PATH_PROG(PATH_TO_UPTIME,uptime) |
1288 | AC_ARG_WITH(uptime_command, | 1288 | AC_ARG_WITH(uptime_command, |