aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-19 22:47:36 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-19 22:47:36 +0200
commit5f79e3e9f62ca5487d9881973149136ba1d19d3e (patch)
treef79271783e73d4ed452f510cac3efc6d240750a6 /configure.in
parenta0640011730d830c562c87ca0bc6237c404146ea (diff)
downloadmonitoring-plugins-5f79e3e9f62ca5487d9881973149136ba1d19d3e.tar.gz
Clean up check for _SC_NPROCESSORS_ONLN
Closes #62.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 2be2a1c6..bbcbb71c 100644
--- a/configure.in
+++ b/configure.in
@@ -1268,21 +1268,21 @@ if test -n "$ac_cv_nslookup_command"; then
AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup])
fi
-AC_MSG_CHECKING([for number of cpus])
+AC_MSG_CHECKING([for number of online cpus])
AC_TRY_COMPILE([#include <unistd.h>],
[sysconf(_SC_NPROCESSORS_ONLN) > 0;],
- AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_ONLN,1,[Define if sysconf returns number of cpus])
+ AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_ONLN,1,[Define if sysconf returns number of online cpus])
AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_ONLN)]),
AC_MSG_RESULT([cannot calculate])
)
+AC_MSG_CHECKING([for number of available cpus])
AC_TRY_COMPILE([#include <unistd.h>],
- [sysconf(_SC_NPROCESSORS_CONF) > 0;],
- AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_CONF,1,[Define if sysconf returns number of cpus])
- AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_CONF)]),
- AC_MSG_RESULT([cannot calculate])
- )
-
+ [sysconf(_SC_NPROCESSORS_CONF) > 0;],
+ AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_CONF,1,[Define if sysconf returns number of available cpus])
+ AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_CONF)]),
+ AC_MSG_RESULT([cannot calculate])
+ )
AC_PATH_PROG(PATH_TO_UPTIME,uptime)
AC_ARG_WITH(uptime_command,