Fix configure sources check.