removed Werror and added check for AM_PROG_AR