Akim Demaille wrote:
>>>>>>"Paul" == Paul Eggert <[EMAIL PROTECTED]> writes:
>>>>>
> 
> Paul> AIX and Interix use _ALL_SOURCE, Solaris uses __EXTENSIONS__,
> Paul> GNU uses _GNU_SOURCE, HP/UX uses _HPUX_SOURCE, and Minix uses
> Paul> _MINIX, _POSIX_SOURCE and _POSIX_1_SOURCE.  Currently these
> Paul> symbols are scattered over several macros (AC_PROG_CC,
> Paul> AC_GNU_SOURCE, AC_AIX, AC_MINIX) but perhaps they should all be
> Paul> folded into AC_PROG_CC (with an option to turn them off,
> Paul> perhaps?).  
> 
> I agree: they should be on by default.  I'm not sure the options are a
> good thing: Autoconf should provide an illusion of uniform behavior
> accross hosts and packages.  If it doesn't suit a specific package for
> some reasons, then it should probably be attached to a feature (some
> functions?) rather than to CC.

On Linux, it might be more standards-friendly to do
#define _XOPEN_SOURCE 600
instead of _GNU_SOURCE.  If we're trying to provide an illusion of
uniform behavior, we should avoid enabling GNU extensions, no?

- Dan


Reply via email to