use Autotools
introduce stdbool
remove -std=gnu99 flag
fail in header check
use `bool' keyword
move BAT{STAT,CAP} to configure
fix clang error by using static inline