Use AC_CACHE_CHECK