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

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

 



* 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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux