[Top][All Lists]

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

Re: Best practices to detect autoconf version in macro.

From: Eric Blake
Subject: Re: Best practices to detect autoconf version in macro.
Date: Tue, 30 Mar 2010 08:41:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3

On 03/30/2010 03:13 AM, Konstantin Andreev wrote:
> Hello.
> I need to write a macro, which will be expanded by various versions of
> autoconf, including 2.13  :(

Simultaneously targeting 2.59 and newer is moderately easy, and still
supported by this list.  Supporting 2.50 and newer is a bit tougher, but
not intractable.  But simultaneously supporting 2.13 and 2.50+ is MUCH
harder, with very few people even attempting it (my gut feel is that it
is technically still doable, although I won't be the one doing it).

If m4_version_compare is defined (added in 2.53, documented in 2.62),
then use it.  Otherwise, you know that you are targeting an older autoconf.

Read this thread for another person who attempted this feat for PHP, and
later gave up, because the changes from 2.13 to 2.50 were so dramatic.
He ended up instead keeping old PHP on the old autoconf, and starting
from scratch with newer autoconf on the next new version of PHP.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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