build: do not automatically reconfigure unless configure.ac changed