[devel] IA: Toolchain update
Sergey Vlasov
vsu at altlinux.ru
Tue Nov 3 16:22:16 UTC 2009
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 <asm/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
])
(AC_CHECK_HEADERS(asm/types.h sys/socket.h) must be called before)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.altlinux.org/pipermail/devel/attachments/20091103/85a99d55/attachment.bin>
More information about the Devel
mailing list