diff options
author | Marcus Boerger <helly@php.net> | 2005-12-24 12:23:09 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-12-24 12:23:09 +0000 |
commit | 319dff73fbd0b0a14df10c464e1cb5f2a7e1a042 (patch) | |
tree | 12b7845d88a0b412e29ec6d14ab8b8968f75e311 | |
parent | 6c2ebc6d76d48964b7311efcb3cdb657fd3dfff1 (diff) | |
download | php-git-319dff73fbd0b0a14df10c464e1cb5f2a7e1a042.tar.gz |
- Make this work with VPATH builds too
-rwxr-xr-x | ext/spl/config.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/spl/config.m4 b/ext/spl/config.m4 index 6f9db5819d..c4ff729f30 100755 --- a/ext/spl/config.m4 +++ b/ext/spl/config.m4 @@ -9,6 +9,8 @@ if test "$PHP_SPL" != "no"; then 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 @@ int main(int argc, char **argv) { ], [ 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) |