From 675a41bee213edd7a02d1e227e6470d2eddebb0a Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 23 Sep 2003 08:16:47 +0000 Subject: [PATCH] MFH: - Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build) --- NEWS | 1 + ext/snmp/config.m4 | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7046492213..4f94f515ad 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ PHP 4 NEWS - Fixed crash bug when non-existing save/serializer handler was used. (Jani) - Fixed memory leak in gethostbynamel() if an error occurs. (Sara) - Fixed FastCGI being unable to bind to a specific IP. (Sascha) +- Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build). (Jani) - Fixed bug #25583 (Incorrect handling of paths starting with / on win32 inside glob() function). (Ilia) - Fixed bug #25570 (Possible crash in apache2handler when zend_bailout called diff --git a/ext/snmp/config.m4 b/ext/snmp/config.m4 index e9641569af..455bc31cac 100644 --- a/ext/snmp/config.m4 +++ b/ext/snmp/config.m4 @@ -101,8 +101,15 @@ if test "$PHP_SNMP" != "no"; then SNMP_LIBNAME=snmp fi - AC_CHECK_FUNCS(snmp_parse_oid) + dnl Check whether snmp_parse_oid() exists. + PHP_CHECK_LIBRARY($SNMP_LIBNAME, snmp_parse_oid, + [ + AC_DEFINE(HAVE_SNMP_PARSE_OID, 1, [ ]) + ], [], [ + $SNMP_SHARED_LIBADD + ]) + dnl Test build. PHP_CHECK_LIBRARY($SNMP_LIBNAME, init_snmp, [ AC_DEFINE(HAVE_SNMP,1,[ ]) -- 2.50.1