Optimize configure.ac