On Tue, Nov 03, 2009 at 06:37:20PM +0300, Dmitry V. Levin wrote: > Now sys/socket.h must be included before linux/netlink.h to compile the > latter. This is not an option for configure check, so it should be done > by linux/socket.h or linux/netlink.h. Actually recent autoconf versions can support this - an example for linux/netlink.h can be found, e.g., at http://svn.python.org/projects/python/branches/release26-maint/configure.in # On Linux, netlink.h requires asm/types.h AC_CHECK_HEADERS(linux/netlink.h,,,[ #ifdef HAVE_ASM_TYPES_H #include #endif #ifdef HAVE_SYS_SOCKET_H #include #endif ]) (AC_CHECK_HEADERS(asm/types.h sys/socket.h) must be called before)