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.
This commit is contained in:
Rasmus Lerdorf 2009-11-28 23:06:54 +00:00
parent 8d169e42de
commit 7cdd773081
3 changed files with 27 additions and 5 deletions

View file

@ -29,6 +29,10 @@ AC_DEFUN([PHP_CONFIGURE_PART],[
AC_MSG_RESULT([${T_MD}$1${T_ME}]) AC_MSG_RESULT([${T_MD}$1${T_ME}])
]) ])
AC_DEFUN([PHP_DIVERT],[
ifdef('AC_PRESERVE_HELP_ORDER', [], [ divert($1) ] )
])
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------
dnl Build system helper macros dnl Build system helper macros
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------

View file

@ -1,6 +1,9 @@
## $Id$ -*- autoconf -*- ## $Id$ -*- autoconf -*-
dnl ## Process this file with autoconf to produce a configure script. 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 include Zend specific macro definitions first
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------
sinclude(Zend/acinclude.m4) sinclude(Zend/acinclude.m4)
@ -8,9 +11,11 @@ sinclude(Zend/acinclude.m4)
dnl Basic autoconf + automake initialization, generation of config.nice. dnl Basic autoconf + automake initialization, generation of config.nice.
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------
AC_PREREQ(2.60) AC_PREREQ(2.13)
AC_INIT(README.SVN-RULES) 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) PHP_CONFIG_NICE(config.nice)
@ -268,6 +273,9 @@ sinclude(Zend/Zend.m4)
sinclude(TSRM/threads.m4) sinclude(TSRM/threads.m4)
sinclude(TSRM/tsrm.m4) sinclude(TSRM/tsrm.m4)
dnl AC 2.13 Compatibility
PHP_DIVERT(2)
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------
PTHREADS_CHECK PTHREADS_CHECK
@ -298,6 +306,9 @@ if test "$enable_maintainer_zts" = "yes"; then
PTHREADS_FLAGS PTHREADS_FLAGS
fi fi
dnl AC 2.13 Compatibility
PHP_DIVERT(3)
dnl Starting system checks. dnl Starting system checks.
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------
@ -638,7 +649,8 @@ if test "x$php_crypt_r" = "x1"; then
PHP_CRYPT_R_STYLE PHP_CRYPT_R_STYLE
fi fi
dnl ## In diversion 4 we check user-configurable general settings. dnl AC 2.13 Compatibility
PHP_DIVERT(4)
dnl General settings. dnl General settings.
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------
@ -877,8 +889,8 @@ else
AC_MSG_RESULT([using system default]) AC_MSG_RESULT([using system default])
fi fi
dnl ## In diversion 5 we check which extensions should be compiled. dnl AC 2.13 Compatibility
dnl ## All of these are normally in the extension directories. PHP_DIVERT(5)
dnl Extension configuration. dnl Extension configuration.
dnl ------------------------------------------------------------------------- dnl -------------------------------------------------------------------------

View file

@ -1,5 +1,8 @@
dnl $Id$ -*- autoconf -*- dnl $Id$ -*- autoconf -*-
dnl AC 2.13 Compatibility
PHP_DIVERT(3)
dnl dnl
dnl Check if flush should be called explicitly after buffered io dnl Check if flush should be called explicitly after buffered io
dnl dnl
@ -218,6 +221,9 @@ dnl
AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan) AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan)
AC_FUNC_FNMATCH AC_FUNC_FNMATCH
dnl AC 2.13 Compatibility
PHP_DIVERT(5)
dnl dnl
dnl Check if there is a support means of creating a new process dnl Check if there is a support means of creating a new process
dnl and defining which handles it receives dnl and defining which handles it receives