configure: reshuffle AM_PROG_AR and LT_INIT to fix a warning