]> granicus.if.org Git - php/commitdiff
Skip overload for ZE2
authorMarcus Boerger <helly@php.net>
Sun, 1 Dec 2002 00:38:30 +0000 (00:38 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 1 Dec 2002 00:38:30 +0000 (00:38 +0000)
Bug #20156

ext/overload/config.m4

index be0576ca289cf883eb0fa9bd016c8bee634833fc..67be7da0aec2a08302d070769d57c626909febf8 100644 (file)
@@ -1,11 +1,16 @@
 dnl
 dnl $Id$
 dnl
-
 PHP_ARG_ENABLE(overload,whether to enable user-space object overloading support,
 [  --disable-overload      Disable user-space object overloading support.], yes)
 
+
 if test "$PHP_OVERLOAD" != "no"; then
-       AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
-       PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
+       AC_CHECK_FILE([Zend/zend_objects.h], [
+               AC_MSG_CHECKING(for overload)
+               AC_MSG_RESULT(not needed with ZendEngine 2)
+       ], [
+               AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
+               PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
+       ])
 fi