From: Marcus Boerger Date: Mon, 30 Jun 2003 23:24:12 +0000 (+0000) Subject: Make --disable-spl work X-Git-Tag: BEFORE_ARG_INFO~507 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4f67f3545b116ad420493b457a7afafb1e5a467;p=php Make --disable-spl work --- diff --git a/ext/spl/config.m4 b/ext/spl/config.m4 index bcae05f2fb..dcb58626ec 100755 --- a/ext/spl/config.m4 +++ b/ext/spl/config.m4 @@ -22,17 +22,19 @@ PHP_ARG_ENABLE(spl, enable hook on array write, dnl last do checks on hooks -if test "$PHP_SPL_HOOK_ALL" != "no" -o "$PHP_SPL_FOREACH" != "no"; then - AC_DEFINE(SPL_FOREACH, 1, [Activate opcode hook on foreach]) - PHP_SPL="yes" -fi -if test "$PHP_SPL_HOOK_ALL" != "no" -o "$PHP_SPL_ARRAY_READ" != "no" -o "$PHP_SPL_ARRAY_WRITE" != "no"; then - AC_DEFINE(SPL_ARRAY_READ, 1, [Activate opcode hook on array read]) - PHP_SPL="yes" -fi -if test "$PHP_SPL_HOOK_ALL" != "no" -o "$PHP_SPL_ARRAY_WRITE" != "no"; then - AC_DEFINE(SPL_ARRAY_WRITE, 1, [Activate opcode hook on array write]) - PHP_SPL="yes" +if test "$PHP_SPL" != "no"; then + if test "$PHP_SPL_HOOK_ALL" != "no" -o "$PHP_SPL_FOREACH" != "no"; then + AC_DEFINE(SPL_FOREACH, 1, [Activate opcode hook on foreach]) + PHP_SPL="yes" + fi + if test "$PHP_SPL_HOOK_ALL" != "no" -o "$PHP_SPL_ARRAY_READ" != "no" -o "$PHP_SPL_ARRAY_WRITE" != "no"; then + AC_DEFINE(SPL_ARRAY_READ, 1, [Activate opcode hook on array read]) + PHP_SPL="yes" + fi + if test "$PHP_SPL_HOOK_ALL" != "no" -o "$PHP_SPL_ARRAY_WRITE" != "no"; then + AC_DEFINE(SPL_ARRAY_WRITE, 1, [Activate opcode hook on array write]) + PHP_SPL="yes" + fi fi if test "$PHP_SPL" != "no"; then