autoconf
[Top][All Lists]
Advanced

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

Re: Anyone remember what AC_PROG_GCC_TRADITIONAL was testing for?


From: Zack Weinberg
Subject: Re: Anyone remember what AC_PROG_GCC_TRADITIONAL was testing for?
Date: Sun, 02 Apr 2023 23:11:08 -0400
User-agent: Cyrus-JMAP/3.9.0-alpha0-238-g746678b8b6-fm-20230329.001-g746678b8

On Sun, Apr 2, 2023, at 5:17 PM, Paul Eggert wrote:
> That macro dates back to /usr/include header files that would play 
> tricks like this
>
>       #define _IO(n, x) (('n'<<8)+x) 
>
>       #define TIOCFOO _IO(T, 1) 

Yeah, I thought it had to be something like that...

> AC_PROG_GCC_TRADITIONAL has not been needed for thirty years, and was 
> declared obsolescent in Autoconf 2.60 (2006-06-05). Also, the Autoconf 
> manual (as of the next version) states Autoconf assumes C89 or later. So 
> if there's any issue with AC_PROG_GCC_TRADITIONAL at all, I suggest 
> replacing its definition with:
>
>    AU_DEFUN([AC_PROG_GCC_TRADITIONAL])

Done (more or less) in the patchset I just posted.

zw



reply via email to

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