
Build environment on HP-UX
==========================

On HP-UX the environment variable 'UNIX_STD' must be defined to get standard
compliant behaviour from the C compiler:
<http://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/standards.5.html>

For this program "UNIX 98" or "UNIX 2003" mode must be defined if the operating
system reports the X/Open XSI extension as available with a value greater than
500 (SUSv2).

To check the operating system support, type 'make config' and search for:
|
| [...]
| Check for X/Open system interface (XSI) extension ... 600

Do nothing if a value lower than 500 is reported for XSI extension.
Use 'export UNIX_STD=98' if 500 is reported for XSI extension.
Use 'export UNIX_STD=2003' if 600 or greater is reported for XSI extension.

If the setup was changed, type 'make distclean' and rebuild.


Note for non-HP C compiler
==========================
(for information only, this is currently not supported)

To build with strict conformance to the UNIX 95 or UNIX 98 standards on HP-UX,
define the appropriate feature test macro and link with unix95.o or unix98.o.
The object files are in /usr/lib/{hpux32|hpux64}.
The HP-UX C and C++ compilers automatically link with the appropriate one when
the UNIX_STD environment variable is set. If you are using a non-HP compiler
like gcc, you must explicitly link with the object file yourself.


EOF
