configure: Only use AM_PROG_AR if it's defined

Only newer versions of autotools define this macro.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
Merge branch 'master' of git://github.com/mortehu/cantera-cas