php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch resolve-circular-readline-dependency.diff for Compile Failure Bug #71924Patch version 2016-07-06 19:25 UTC Return to Bug #71924 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:
Developer: bernd@bpj-code.co.zadiff --git a/acinclude.m4 b/acinclude.m4 index 28506b6..db53e3f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -138,6 +138,7 @@ dnl PHP_INIT_BUILD_SYSTEM dnl AC_DEFUN([PHP_INIT_BUILD_SYSTEM],[ AC_REQUIRE([PHP_CANONICAL_HOST_TARGET])dnl +m4_define([_m4_divert(BODY_POSTSELECT)], 1001)dnl test -d include || $php_shtool mkdir include > Makefile.objects > Makefile.fragments @@ -147,6 +148,18 @@ $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/d ]) dnl +dnl PHP_CONFIG_CONTEXT +dnl +dnl Set the build system context to the given directory, as if output from +dnl config-stubs. +dnl +AC_DEFUN([PHP_CONFIG_CONTEXT],[ +AC_DEFUN([PHP_EXT_BUILDDIR], [$1])dnl +AC_DEFUN([PHP_EXT_DIR], [$1])dnl +AC_DEFUN([PHP_EXT_SRCDIR], [$abs_srcdir/$1])dnl +]) + +dnl dnl PHP_GEN_GLOBAL_MAKEFILE dnl dnl Generates the global makefile. diff --git a/build/config-stubs b/build/config-stubs index fb49bd4..2a16f13 100755 --- a/build/config-stubs +++ b/build/config-stubs @@ -5,8 +5,6 @@ dir=$1; shift for stubfile in $dir/*/config0.m4 $dir/*/config.m4 $dir/*/config9.m4; do echo "dnl Define where extension directories are located in the configure context -AC_DEFUN([PHP_EXT_BUILDDIR], [`dirname $stubfile`]) -AC_DEFUN([PHP_EXT_DIR], [`dirname $stubfile`]) -AC_DEFUN([PHP_EXT_SRCDIR], [\$abs_srcdir/`dirname $stubfile`]) +PHP_CONFIG_CONTEXT([`dirname $stubfile`]) sinclude($stubfile)" done diff --git a/configure.in b/configure.in index 142cf7f..c475858 100644 --- a/configure.in +++ b/configure.in @@ -1541,6 +1541,8 @@ dnl Check for unknown configure options dnl PHP_CHECK_CONFIGURE_OPTIONS +m4_undivert([BODY_POSTSELECT]) + dnl dnl Generate build files dnl diff --git a/sapi/phpdbg/config.m4 b/sapi/phpdbg/config.m4 index 9fb4e62..4aa2dad 100644 --- a/sapi/phpdbg/config.m4 +++ b/sapi/phpdbg/config.m4 @@ -11,6 +11,7 @@ PHP_ARG_ENABLE(phpdbg-webhelper, for phpdbg web SAPI support, PHP_ARG_ENABLE(phpdbg-debug, for phpdbg debug build, [ --enable-phpdbg-debug Build phpdbg in debug mode], no, no) +m4_divert_text([BODY_POSTSELECT], [PHP_CONFIG_CONTEXT([sapi/phpdbg])dnl if test "$BUILD_PHPDBG" = "" && test "$PHP_PHPDBG" != "no"; then AC_HEADER_TIOCGWINSZ AC_DEFINE(HAVE_PHPDBG, 1, [ ]) @@ -64,6 +65,7 @@ if test "$BUILD_PHPDBG" = "" && test "$PHP_PHPDBG" != "no"; then PHP_SUBST(BUILD_PHPDBG) PHP_SUBST(BUILD_PHPDBG_SHARED) fi +])dnl if test "$PHP_PHPDBG_WEBHELPER" != "no"; then PHP_NEW_EXTENSION(phpdbg_webhelper, phpdbg_rinit_hook.c phpdbg_webdata_transfer.c, $ext_shared) |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Fri Dec 27 19:01:28 2024 UTC |