[Patches] [ python-Patches-623771 ] autoconf-2.5X tweaks for configure.in

noreply@sourceforge.net noreply@sourceforge.net
Thu, 17 Oct 2002 08:55:44 -0700


Patches item #623771, was opened at 2002-10-15 16:30
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=623771&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Art Haas (ahaas)
Assigned to: Martin v. Löwis (loewis)
Summary: autoconf-2.5X tweaks for configure.in

Initial Comment:
Hi.

Here's a small patch that adjust AC_INIT and AC_OUTPUT
from the autoconf-2.13 style to the new autoconf-2.5X
style. In changing these macros to their new format,
the addition of AC_CONFIG_SRCDIR and AC_CONFIG_FILES is
required. I've also removed the VERSION macro as that
value can be defined in the second argument of AC_INIT.

Art Haas
ahaas@neosoft.com

----------------------------------------------------------------------

>Comment By: Art Haas (ahaas)
Date: 2002-10-17 10:55

Message:
Logged In: YES 
user_id=629911

My Makefile has a blank VERSION also, so I see that the part
of the patch where I removed the VERSION variable is wrong.
I'm attaching a new patch for the AC_INIT bits of
configure.in. In this patch, there are a couple of variables
defined using m4_define(), and these are then used to
provide the version argument for AC_INIT and the value for
the VERSION variable. After rebuilding configure with this
patch, the variable VERSION in the Makefile is set to 2.3,
as it should be.

The AC_OUTPUT changes from the first patch are still good.


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-10-16 14:32

Message:
Logged In: YES 
user_id=21627

Can you please verify the setting of VERSION in your
generate Makefile? When I use your patch, I get

VERSION=

whereas I should get

VERSION=	2.3

Also, can you please use autoconf 2.53? This is the version
that Python is currently is developed with, and we cannot
make use of strategies or features that are available in
2.54 only.


----------------------------------------------------------------------

Comment By: Art Haas (ahaas)
Date: 2002-10-16 11:44

Message:
Logged In: YES 
user_id=629911

Hi.

I did test this, and it worked fine - as far as I could
tell. The autoconf docs I have (autoconf-2.54) show that
AC_INIT is defined like ...

AC_INIT (PACKAGE, VERSION, [BUG-REPORT], [TARNAME])

... and PACKAGE_VERSION is taken from VERSION. I suppose
that if there is a conflict, then the variable VERSION can
be directly defined after AC_INIT, and it can be specified
to whatever is needed to avoid the problems you see.

Still, the format for the AC_INIT macro as it exists now is
obsolete, so I believe it's better to change to the current
format. Changing AC_OUTPUT to the current style is also a
good move IMHO. There's another change I'd also suggest -
renaming configure.in to configure.ac, as autoconf now
suggests the ".ac" extension. That can be done later.

Art Haas



----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-10-16 06:22

Message:
Logged In: YES 
user_id=21627

It appears that you did not test this change. AC_INIT does
not define VERSION, but PACKAGE_VERSION.

Even if this is fixed (somehow), the resulting pyconfig.h
will be installed, and then conflict in its PACKAGE_VERSION
definition with other packages which also use autoconf. So
I'm not sure this should be done at all.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=623771&group_id=5470