configure: add fallback when checking for ar