Move version check up to beginning of configure.ac.