From: foobar Date: Sun, 1 Dec 2002 17:24:00 +0000 (+0000) Subject: fix build.. X-Git-Tag: RELEASE_1_0b3~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cef45338c9e60989d944032dae5a3594ab5c88b4;p=php fix build.. --- diff --git a/ext/overload/config.m4 b/ext/overload/config.m4 index 67be7da0ae..77f9b25d05 100644 --- a/ext/overload/config.m4 +++ b/ext/overload/config.m4 @@ -1,16 +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_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) - ]) + if test -f $php_abs_top_srcdir/Zend/zend_objects.h; then + AC_MSG_CHECKING(for overload) + AC_MSG_RESULT(not needed with ZendEngine 2) + else + AC_DEFINE(HAVE_OVERLOAD, 1, [ ]) + PHP_NEW_EXTENSION(overload, overload.c, $ext_shared) + fi fi