diff options
author | Eric Stanley <estanley@nagios.com> | 2012-02-10 10:27:24 -0600 |
---|---|---|
committer | Eric Stanley <estanley@nagios.com> | 2012-02-10 10:27:24 -0600 |
commit | 4011599466b8247ced0b6400b72e16620636d0fc (patch) | |
tree | 6278e005821702ea94e35c105cd6c32e0e48aae7 | |
parent | 355ad150eb4ba18d1e863c34c85e60a20f7c710d (diff) | |
download | monitoring-plugins-4011599466b8247ced0b6400b72e16620636d0fc.tar.gz |
Enable compiling on AIX 6.1
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | plugins/common.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index bdd44314..1d16bcd1 100644 --- a/configure.in +++ b/configure.in | |||
@@ -162,6 +162,8 @@ dnl | |||
162 | dnl check for math-related functions needing -lm | 162 | dnl check for math-related functions needing -lm |
163 | AC_CHECK_HEADERS(math.h) | 163 | AC_CHECK_HEADERS(math.h) |
164 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") | 164 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") |
165 | AC_CHECK_HEADERS(mp.h) | ||
166 | AC_CHECK_LIB(bsd,pow,MATHLIBS="$MATHLIBS -lbsd") | ||
165 | AC_SUBST(MATHLIBS) | 167 | AC_SUBST(MATHLIBS) |
166 | 168 | ||
167 | dnl Check if we buils local libtap | 169 | dnl Check if we buils local libtap |
diff --git a/plugins/common.h b/plugins/common.h index dfc09416..09af7e7e 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
@@ -59,6 +59,12 @@ | |||
59 | #include <math.h> | 59 | #include <math.h> |
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | #ifdef _AIX | ||
63 | #ifdef HAVE_MP_H | ||
64 | #include <mp.h> | ||
65 | #endif | ||
66 | #endif | ||
67 | |||
62 | #ifdef HAVE_STRINGS_H | 68 | #ifdef HAVE_STRINGS_H |
63 | #include <strings.h> | 69 | #include <strings.h> |
64 | #endif | 70 | #endif |