docmd1.c: only enable encryption if we have crypt
configure.ac: fix crypt automagic
tests: add a test suite
configure.ac: enable AM_SILENT_RULES
configure.ac: remove obsolete macro
term.c: restore termios stuff
configure.ac: fix check for Minix
TODO: cleanup