configure: run important checks first (and bail out if something is missing).