Save config.cache before tests which are likely to fail.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 12 Feb 2011 09:56:20 +0000 (10:56 +0100)
committerAndy Wingo <wingo@pobox.com>
Sat, 12 Feb 2011 11:01:03 +0000 (12:01 +0100)
commit726788204f62e44a193fa84baf7dc8d012467413
tree5f9d66790b631e60f8f9ba8c0aa368b5ebd13efa
parent32b63129529f267b8f6f3f97f020b7e8ae51b9c1
Save config.cache before tests which are likely to fail.

Guile's configure script takes fairly long.  On a system without
automatic build dependency installation, it is amplified by the fact
that your user might be both impatient and not read the build
instructions, thus needs to rerun configure several times only to find
out there is another dependency to install.  Still, there is help even
for such kinds of misguided figures such as me: save the temporary
config.cache file (if one is used anyway) before embarking upon the set
of tests that are likely to error out.  That way, the second and further
reruns are much faster.

The downside of this patch is that, when fixing the errors requires
changing to precious variables (such as CPPFLAGS or so), the user will
need to 'rm -f config.cache' to keep configure happy.

* configure.ac: Call AC_CACHE_SAVE before the gmp tests.
configure.ac