use AC_CACHE_CHECK.