User:Sam/Autoconf cache

Background
tests can be rather time-intensive, especially on lower-end hardware. It's especially frustrating to see this:

It's possible for configure (autoconf-generated, at least) to cache the results of some tests so it doesn't have to re-run them. Note that it's most valuable to cache tests where a small e.g. C program is being compiled and executed as these are often the most expensive.

Implementation within Portage
This was actually implemented within Portage for a period between 2006 and 2008 when it was removed.

It was removed because of various bugs (TODO: links).

Setup
Create a directory for the cache files to reside in:

Then configure as follows:

Links

 * GNU autoconf documentation
 * smaeul's Portage configuration