diff options
-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 bdd4431..1d16bcd 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 dfc0941..09af7e7 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 |