cvs: php-src(PHP_5_1) /ext/spl config.m4

From: Date: Sat, 24 Dec 2005 12:23:09 +0000
Subject: cvs: php-src(PHP_5_1) /ext/spl config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36203@lists.php.net to get a copy of this message
helly Sat Dec 24 12:23:09 2005 EDT Modified files: (Branch: PHP_5_1) /php-src/ext/spl config.m4 Log: - Make this work with VPATH builds too http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/config.m4?r1=1.13.2.2&r2=1.13.2.3&diff_format=u Index: php-src/ext/spl/config.m4 diff -u php-src/ext/spl/config.m4:1.13.2.2 php-src/ext/spl/config.m4:1.13.2.3 --- php-src/ext/spl/config.m4:1.13.2.2 Tue Dec 20 21:38:28 2005 +++ php-src/ext/spl/config.m4 Sat Dec 24 12:23:09 2005 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.13.2.2 2005/12/20 21:38:28 helly Exp $ +dnl $Id: config.m4,v 1.13.2.3 2005/12/24 12:23:09 helly Exp $ dnl config.m4 for extension SPL PHP_ARG_ENABLE(spl, enable SPL suppport, @@ -9,6 +9,8 @@ AC_MSG_ERROR(Cannot build SPL as a shared module) fi AC_MSG_CHECKING(whether zend_object_value is packed) + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS" AC_TRY_RUN([ #include "Zend/zend_types.h" int main(int argc, char **argv) { @@ -23,7 +25,8 @@ ], [ ac_result=0 AC_MSG_RESULT(no) - ]) + ]) + CPPFLAGS=$old_CPPFLAGS AC_DEFINE(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed]) AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, $ext_shared)

« previous php.cvs (#36203) next »