Next: Erlang Libraries, Previous: System Services, Up: Existing Tests
The following macros check for certain operating systems that need special treatment for some programs, due to exceptional oddities in their header files or libraries. These macros are warts; they will be replaced by a more systematic approach, based on the functions they make available or the environments they provide.
If on AIX, define
_ALL_SOURCE
. Allows the use of some BSD functions. Should be called before any macros that run the C compiler.
If using the GNU C library, define
_GNU_SOURCE
. Allows the use of some GNU functions. Should be called before any macros that run the C compiler.
For interactive Systems Corporation Unix, add -lcposix to output variable
LIBS
if necessary for Posix facilities. Call this afterAC_PROG_CC
and before any other macros that use Posix interfaces.This macro is obsolescent, as interactive Unix is obsolete, and Sun dropped support for it on 2006-07-23. New programs need not use this macro.
If on Minix, define
_MINIX
and_POSIX_SOURCE
and define_POSIX_1_SOURCE
to be 2. This allows the use of Posix facilities. Should be called before any macros that run the C compiler.
If possible, enable extensions to Posix on hosts that normally disable the extensions, typically due to standards-conformance namespace issues. This may involve defining
__EXTENSIONS__
and_POSIX_PTHREAD_SEMANTICS
, which are macros used by Solaris. It also defines_TANDEM_SOURCE
for the HP NonStop platform. This macro also has the combined effects ofAC_GNU_SOURCE
,AC_AIX
, andAC_MINIX
.