autoconf: use AC_CHECK_TOOL for as and ld