autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick divert() 2.13/2.6x portability macro


From: Ralf Wildenhues
Subject: Re: Quick divert() 2.13/2.6x portability macro
Date: Sun, 29 Nov 2009 21:41:01 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

* Rasmus Lerdorf wrote on Sun, Nov 29, 2009 at 09:33:56PM CET:
> Ralf Wildenhues wrote:
> > 
> > We looked at a PHP package and its diversion usage for its toplevel
> > configure script with Autoconf 2.13 when a bug with PHP and newer
> > Autoconf was last reported, within the last couple of weeks, on the
> > bug-autoconf list IIRC, and when it was first reported, several months
> > ago.  What I could find there was that removing the diverts was mostly
> > a no-op (except for configure line numbers changing, and some comments).

> Removing the diverts and adding AC_PRESERVE_HELP_ORDER after the AC_INIT
> call does fix things for PHP in recent autoconfs.  My main issue was
> trying to support both.  The next major release will drop autoconf-2.13
> support, but unfortunately I can't do that in a minor release.

Try
  m4_ifdef([AC_PRESERVE_HELP_ORDER],
           [stuff to do with newer AC],
           [stuff for older AC])

the older stuff could be something like
  m4_define([my_divert], [divert($@)])

and the newer (both untested)
  m4_define([my_divert])
  AC_PRESERVE_HELP_ORDER

HTH.

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]