diff options
author | Jani Taskinen <jani@php.net> | 2007-07-11 08:47:45 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2007-07-11 08:47:45 +0000 |
commit | 45c85130aff7a63c11c273417dabe6cc37313c2d (patch) | |
tree | cbb15fa3966cb833c95fe8013e12ce45cdd43668 /ext/snmp | |
parent | f765f73e5f69632a805ea2d10eb0d4163c34ea1b (diff) | |
download | php-git-45c85130aff7a63c11c273417dabe6cc37313c2d.tar.gz |
MFH: Changed AC_ARG_ENABLE to PHP_ARG_ENABLE
Diffstat (limited to 'ext/snmp')
-rw-r--r-- | ext/snmp/config.m4 | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/ext/snmp/config.m4 b/ext/snmp/config.m4 index 1fc718024f..890c3b5f73 100644 --- a/ext/snmp/config.m4 +++ b/ext/snmp/config.m4 @@ -8,6 +8,9 @@ PHP_ARG_WITH(snmp,for SNMP support, PHP_ARG_WITH(openssl-dir,OpenSSL dir for SNMP, [ --with-openssl-dir[=DIR] SNMP: openssl install prefix], no, no) +PHP_ARG_ENABLE(ucd-snmp-hack, whether to enable UCD SNMP hack, +[ --enable-ucd-snmp-hack SNMP: Enable UCD SNMP hack], no, no) + if test "$PHP_SNMP" != "no"; then dnl @@ -119,19 +122,10 @@ if test "$PHP_SNMP" != "no"; then $SNMP_SHARED_LIBADD ]) + if test "$PHP_UCD_SNMP_HACK" = "yes" ; then + AC_DEFINE(UCD_SNMP_HACK, 1, [ ]) + fi + PHP_NEW_EXTENSION(snmp, snmp.c, $ext_shared) PHP_SUBST(SNMP_SHARED_LIBADD) fi - -AC_MSG_CHECKING(whether to enable UCD SNMP hack) -AC_ARG_ENABLE(ucd-snmp-hack, -[ --enable-ucd-snmp-hack SNMP: 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 -],[ - AC_MSG_RESULT(no) -]) |