Have m4 skip over AM_PROG_AR if it is not defined

This macro is not present in automake 1.11, but needed in automake 1.12
under certain conditions for building modules. Closes #9.