build system: add autoconf/automake-based system
check_ids: move to other directory
build system: remove old hand-crafted make files