Modifying configure files so that AMD_HAVE_ELEMENTAL is defined properly