[Coding style] improve structure of configure.ac (again)

Subsequent patches require that AC_CHECK_HEADERS is executed before
AC_CHECK_FUNC
Update documentation
Autoconf - AC_TRY_LINK is obsolete
Autoconf - checks for upcoming CPU affinity implementation