caching config.cache

many of the older, slower machines that run NetBSD (pretty much all of mine) build programs very slowly, especially those that use autotools. it would save some time if a subset of config.cache could be created and used as cache for all invocations of the configure script.