GNU Info

Info Node: (autoconf.info)Run Time

(autoconf.info)Run Time


Next: Systemology Prev: Examining Libraries Up: Writing Tests
Enter node , (file) or (file)node

Checking Run Time Behavior
==========================

   Sometimes you need to find out how a system performs at run time,
such as whether a given function has a certain capability or bug.  If
you can, make such checks when your program runs instead of when it is
configured.  You can check for things like the machine's endianness when
your program initializes itself.

   If you really need to test for a run-time behavior while configuring,
you can write a test program to determine the result, and compile and
run it using `AC_TRY_RUN'.  Avoid running test programs if possible,
because this prevents people from configuring your package for
cross-compiling.

Test Programs
Running test programs
Guidelines
General rules for writing test programs
Test Functions
Avoiding pitfalls in test programs

automatically generated by info2www version 1.2.2.9