summaryrefslogtreecommitdiff
path: root/ext/snmp/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/snmp/config.m4')
-rw-r--r--ext/snmp/config.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/snmp/config.m4 b/ext/snmp/config.m4
index 07473fd9c8..c39d77908e 100644
--- a/ext/snmp/config.m4
+++ b/ext/snmp/config.m4
@@ -23,6 +23,20 @@ AC_ARG_WITH(snmp,
PHP_EXTENSION(snmp)
AC_ADD_LIBRARY_WITH_PATH(snmp, $SNMP_LIBDIR)
AC_ADD_INCLUDE($SNMP_INCDIR)
+ AC_CHECK_LIB(kstat, kstat_read, [AC_ADD_LIBRARY(kstat)])
+ else
+ AC_MSG_RESULT(no)
+ fi
+],[
+ AC_MSG_RESULT(no)
+])
+
+AC_MSG_CHECKING(whether to enable UCD SNMP hack)
+AC_ARG_ENABLE(ucd-snmp-hack,
+[ --enable-ucd-snmp-hack Enable UCD SNMP hack],[
+ if test "$enableval" = "yes" ; then
+ AC_DEFINE(UCD_SNMP_HACK, 1)
+ AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi