[Patches] [ python-Patches-623780 ] configure.in obsolete macro replacement

noreply@sourceforge.net noreply@sourceforge.net
Wed, 16 Oct 2002 09:50:50 -0700


Patches item #623780, was opened at 2002-10-15 16:45
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=623780&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: configure.in obsolete macro replacement

Initial Comment:
Hi.

Here's a patch that replaces the obsolete
AC_STRUCT_ST_RDEV and AC_STRUCT_ST_BLKSIZE macros with
their new counterparts from AC_CHECK_MEMBERS. In
replacing these two macros, the pyconfig.h.in file had
the deprecated definitions for these two macros removed
as well as the deprecated form for the
AC_STRUCT_ST_BLOCKS macro, and the associated changes
to posixmodule.c to test for the new preprocessor
definitions were added. While fiddling with
pyconfig.h.in, I also removed the deprecated form for
time zone macros, and made a change to the timemodule.c
file so it will use the new preprocessor token. I've
rebuilt my python with these changes and it looks alright.

The line numbers for the configure.in patch may be a
little off as I've modified it slightly by changing the
AC_INIT macro - there is a patch submitted for that
change as well.

Art Haas 

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

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

Message:
Logged In: YES 
user_id=629911

My docs are for autoconf-2.54 and the path for the info docs
is ...

Structures -> Particular Structures

This page gives the summary for AC_STRUCT_ST_BLKSIZE and
AC_STRUCT_ST_RDEV, and in the description of the two macros
it lists them as obsolete and gives the replacement
AC_CHECK_MEMBERS macro.

I think it's a shortcoming in the autoconf documentation
that the macro listing obsolete macros doesn't list the
AC_CHECK_MEMBERS macro - it points to the
AC_STRUCT_ST_BLKSIZE macro instead.

I don't have the docs for autoconf-2.53 anymore to check if
these changes were listed there as well.

Art Haas

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

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

Message:
Logged In: YES 
user_id=21627

Can you please point to the documentation that declares
those macros as obsolete? I could only find that AC_ST_RDEV
is obsolete, and replaced by AC_STRUCT_ST_RDEV.

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

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