[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] patch for AC_GNU_SOURCE on Solaris
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] patch for AC_GNU_SOURCE on Solaris |
Date: |
Thu, 7 Aug 2003 19:07:44 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> We could spend some time hacking on coreutils to make it portable to
> pedantic Solaris, but I don't think it's worth the bother. It's
> easier simply to define __EXTENSIONS__, which is the Solaris analog
> to _GNU_SOURCE.
OK. It seems that the SGI Irix compilers define __EXTENSIONS__, but
nothing in their header files tests it. So it looks safe to define
__EXTENSIONS__.
> dnl Prerequisites of lib/timespec.h.
> + AC_REQUIRE([AC_GNU_SOURCE])
This is confusing because lib/timespec.h doesn't need _GNU_SOURCE.
I'd prefer either the creation of a separate macro AC_SOLARIS_SOURCE,
or renaming AC_GNU_SOURCE into AC_USE_SYSTEM_EXTENSIONS.
Bruno