From 7cdd7730819d21269bc0e4244761c5cc95b2a91c Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 28 Nov 2009 23:06:54 +0000 Subject: [PATCH] More work on the autoconf 2.13->2.60+ transition code. 2.13 should be working again with one weird libtool issue left to solve. It doesn't seem directly related to this stuff. --- acinclude.m4 | 4 ++++ configure.in | 22 +++++++++++++++++----- ext/standard/config.m4 | 6 ++++++ 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 5c3c7577a7e..74274cb4501 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -29,6 +29,10 @@ AC_DEFUN([PHP_CONFIGURE_PART],[ AC_MSG_RESULT([${T_MD}$1${T_ME}]) ]) +AC_DEFUN([PHP_DIVERT],[ + ifdef('AC_PRESERVE_HELP_ORDER', [], [ divert($1) ] ) +]) + dnl ------------------------------------------------------------------------- dnl Build system helper macros dnl ------------------------------------------------------------------------- diff --git a/configure.in b/configure.in index 7da3ef7e217..59f1f5c2e35 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,9 @@ ## $Id$ -*- autoconf -*- dnl ## Process this file with autoconf to produce a configure script. +dnl AC 2.13 Compatibility +PHP_DIVERT(1) + dnl include Zend specific macro definitions first dnl ------------------------------------------------------------------------- sinclude(Zend/acinclude.m4) @@ -8,9 +11,11 @@ sinclude(Zend/acinclude.m4) dnl Basic autoconf + automake initialization, generation of config.nice. dnl ------------------------------------------------------------------------- -AC_PREREQ(2.60) +AC_PREREQ(2.13) AC_INIT(README.SVN-RULES) -AC_PRESERVE_HELP_ORDER +dnl For autoconf 2.60+ we use AC_PRESERVE_HELP_ORDER +dnl instead of 2.13-style diversions +ifdef('AC_PRESERVE_HELP_ORDER', [AC_PRESERVE_HELP_ORDER], []) PHP_CONFIG_NICE(config.nice) @@ -268,6 +273,9 @@ sinclude(Zend/Zend.m4) sinclude(TSRM/threads.m4) sinclude(TSRM/tsrm.m4) +dnl AC 2.13 Compatibility +PHP_DIVERT(2) + dnl ------------------------------------------------------------------------- PTHREADS_CHECK @@ -298,6 +306,9 @@ if test "$enable_maintainer_zts" = "yes"; then PTHREADS_FLAGS fi +dnl AC 2.13 Compatibility +PHP_DIVERT(3) + dnl Starting system checks. dnl ------------------------------------------------------------------------- @@ -638,7 +649,8 @@ if test "x$php_crypt_r" = "x1"; then PHP_CRYPT_R_STYLE fi -dnl ## In diversion 4 we check user-configurable general settings. +dnl AC 2.13 Compatibility +PHP_DIVERT(4) dnl General settings. dnl ------------------------------------------------------------------------- @@ -877,8 +889,8 @@ else AC_MSG_RESULT([using system default]) fi -dnl ## In diversion 5 we check which extensions should be compiled. -dnl ## All of these are normally in the extension directories. +dnl AC 2.13 Compatibility +PHP_DIVERT(5) dnl Extension configuration. dnl ------------------------------------------------------------------------- diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 7bd8426e196..d8c7ca57a42 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -1,5 +1,8 @@ dnl $Id$ -*- autoconf -*- +dnl AC 2.13 Compatibility +PHP_DIVERT(3) + dnl dnl Check if flush should be called explicitly after buffered io dnl @@ -218,6 +221,9 @@ dnl AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan) AC_FUNC_FNMATCH +dnl AC 2.13 Compatibility +PHP_DIVERT(5) + dnl dnl Check if there is a support means of creating a new process dnl and defining which handles it receives