Skip to content

Commit 7cdd773

Browse files
committed
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.
1 parent 8d169e4 commit 7cdd773

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

acinclude.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ AC_DEFUN([PHP_CONFIGURE_PART],[
2929
AC_MSG_RESULT([${T_MD}$1${T_ME}])
3030
])
3131

32+
AC_DEFUN([PHP_DIVERT],[
33+
ifdef('AC_PRESERVE_HELP_ORDER', [], [ divert($1) ] )
34+
])
35+
3236
dnl -------------------------------------------------------------------------
3337
dnl Build system helper macros
3438
dnl -------------------------------------------------------------------------

configure.in

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
## $Id$ -*- autoconf -*-
22
dnl ## Process this file with autoconf to produce a configure script.
33

4+
dnl AC 2.13 Compatibility
5+
PHP_DIVERT(1)
6+
47
dnl include Zend specific macro definitions first
58
dnl -------------------------------------------------------------------------
69
sinclude(Zend/acinclude.m4)
710

811
dnl Basic autoconf + automake initialization, generation of config.nice.
912
dnl -------------------------------------------------------------------------
1013

11-
AC_PREREQ(2.60)
14+
AC_PREREQ(2.13)
1215
AC_INIT(README.SVN-RULES)
13-
AC_PRESERVE_HELP_ORDER
16+
dnl For autoconf 2.60+ we use AC_PRESERVE_HELP_ORDER
17+
dnl instead of 2.13-style diversions
18+
ifdef('AC_PRESERVE_HELP_ORDER', [AC_PRESERVE_HELP_ORDER], [])
1419

1520
PHP_CONFIG_NICE(config.nice)
1621

@@ -268,6 +273,9 @@ sinclude(Zend/Zend.m4)
268273
sinclude(TSRM/threads.m4)
269274
sinclude(TSRM/tsrm.m4)
270275

276+
dnl AC 2.13 Compatibility
277+
PHP_DIVERT(2)
278+
271279
dnl -------------------------------------------------------------------------
272280

273281
PTHREADS_CHECK
@@ -298,6 +306,9 @@ if test "$enable_maintainer_zts" = "yes"; then
298306
PTHREADS_FLAGS
299307
fi
300308

309+
dnl AC 2.13 Compatibility
310+
PHP_DIVERT(3)
311+
301312
dnl Starting system checks.
302313
dnl -------------------------------------------------------------------------
303314

@@ -638,7 +649,8 @@ if test "x$php_crypt_r" = "x1"; then
638649
PHP_CRYPT_R_STYLE
639650
fi
640651

641-
dnl ## In diversion 4 we check user-configurable general settings.
652+
dnl AC 2.13 Compatibility
653+
PHP_DIVERT(4)
642654

643655
dnl General settings.
644656
dnl -------------------------------------------------------------------------
@@ -877,8 +889,8 @@ else
877889
AC_MSG_RESULT([using system default])
878890
fi
879891

880-
dnl ## In diversion 5 we check which extensions should be compiled.
881-
dnl ## All of these are normally in the extension directories.
892+
dnl AC 2.13 Compatibility
893+
PHP_DIVERT(5)
882894

883895
dnl Extension configuration.
884896
dnl -------------------------------------------------------------------------

ext/standard/config.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
dnl $Id$ -*- autoconf -*-
22

3+
dnl AC 2.13 Compatibility
4+
PHP_DIVERT(3)
5+
36
dnl
47
dnl Check if flush should be called explicitly after buffered io
58
dnl
@@ -218,6 +221,9 @@ dnl
218221
AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan)
219222
AC_FUNC_FNMATCH
220223

224+
dnl AC 2.13 Compatibility
225+
PHP_DIVERT(5)
226+
221227
dnl
222228
dnl Check if there is a support means of creating a new process
223229
dnl and defining which handles it receives

0 commit comments

Comments
 (0)