Use autoconf cache to speed up CI

The CI spends a long time running configure scripts of each subproject. We might use autoconf cache files to reduce the amount of time spent.