configure: Split some logical blocks off from HAVE_LIST