Minor changes

Refactor 'check_command' codes.

Also try to add install method to Autoconf.