add AM_PROG_AR to configure.ac

Otherwise I get this notification:
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'