Comment 1 for bug 1042442

+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

seems to be a better fix based on https://github.com/keithw/mosh/commit/1b86532a9910fbb70b673e9e733a9afd3bcdeb31

Also, teste with it.