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

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