Fix problems with AC_FUNC_MMAP_FILE and AC_LINK_USE_R that caused problems