AM_PATH_CHECK is deprecated, so check it defined
Merge pull request #34 from mattn/am_path_check

AM_PATH_CHECK is deprecated