mwoehlke <[EMAIL PROTECTED]> writes: > I would prefer that autoconf know that if it is on NSK/OSS ('#ifdef > __TANDEM'), that _TANDEM_SOURCE needs to be defined.
Makes sense, though I wish this stuff were better-documented on the web. Might as well do it unconditionally, as that's what we do for other symbols like that. I installed this into Autoconf. gnulib patch will follow. 2006-10-11 Paul Eggert <[EMAIL PROTECTED]> * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for the NonStop platform. * doc/autoconf.texi (Posix Variants): Likewise. * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise. Index: NEWS =================================================================== RCS file: /cvsroot/autoconf/autoconf/NEWS,v retrieving revision 1.403 diff -u -r1.403 NEWS --- NEWS 11 Oct 2006 19:35:57 -0000 1.403 +++ NEWS 11 Oct 2006 22:38:07 -0000 @@ -21,6 +21,8 @@ ** AC_CHECK_DECL now also works with aggregate objects. +** AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for the NonStop platform. + ** GNU M4 1.4.7 or later is now recommended. * Major changes in Autoconf 2.60a (2006-08-25) Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.1092 diff -u -r1.1092 autoconf.texi --- doc/autoconf.texi 11 Oct 2006 19:35:57 -0000 1.1092 +++ doc/autoconf.texi 11 Oct 2006 22:38:08 -0000 @@ -7291,12 +7291,14 @@ @cvindex _POSIX_1_SOURCE @cvindex _POSIX_PTHREAD_SEMANTICS @cvindex _POSIX_SOURCE [EMAIL PROTECTED] _TANDEM_SOURCE @cvindex __EXTENSIONS__ If possible, enable extensions to Posix on hosts that normally disable the extensions, typically due to standards-conformance namespace issues. This may involve defining @code{__EXTENSIONS__} and [EMAIL PROTECTED], which are macros used by Solaris. This -macro also has the combined effects of @code{AC_GNU_SOURCE}, [EMAIL PROTECTED], which are macros used by Solaris. +It also defines @code{_TANDEM_SOURCE} for the @acronym{HP} NonStop platform. +This macro also has the combined effects of @code{AC_GNU_SOURCE}, @code{AC_AIX}, and @code{AC_MINIX}. @end defmac Index: lib/autoconf/specific.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/specific.m4,v retrieving revision 1.371 diff -u -r1.371 specific.m4 --- lib/autoconf/specific.m4 26 Sep 2006 20:57:16 -0000 1.371 +++ lib/autoconf/specific.m4 11 Oct 2006 22:38:08 -0000 @@ -400,6 +400,9 @@ #endif #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS +#endif +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE #endif]) AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], [ac_cv_safe_to_define___extensions__], @@ -412,6 +415,7 @@ test $ac_cv_safe_to_define___extensions__ = yes && AC_DEFINE([__EXTENSIONS__]) AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) + AC_DEFINE([_TANDEM_SOURCE]) ]) _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils