[build] configure: don't abuse AC_CHECK_FILE. Unbreaks the cross-compilation.