]> granicus.if.org Git - php/commitdiff
Make --disable-spl work
authorMarcus Boerger <helly@php.net>
Mon, 30 Jun 2003 23:24:12 +0000 (23:24 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 30 Jun 2003 23:24:12 +0000 (23:24 +0000)
ext/spl/config.m4

index bcae05f2fb1d3c10dad6647de238c9db74858c8f..dcb58626ecac0fbfa583bebd55992ad7652882cc 100755 (executable)
@@ -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