configure.ac: robustify netlink.h check

https://bugzilla.gnome.org/show_bug.cgi?id=666173
This commit is contained in:
Dan Winship 2011-12-14 10:19:13 -05:00
parent 14fb10d14b
commit 84df41c02c

View File

@ -1112,7 +1112,8 @@ fi
AC_SUBST(NETWORK_LIBS) AC_SUBST(NETWORK_LIBS)
AC_CHECK_HEADER([linux/netlink.h], AC_CHECK_HEADER([linux/netlink.h],
[AC_DEFINE(HAVE_NETLINK, 1, [We have AF_NETLINK sockets])]) [AC_DEFINE(HAVE_NETLINK, 1, [We have AF_NETLINK sockets])],,
[#include <sys/socket.h>])
AM_CONDITIONAL(HAVE_NETLINK, [test "$ac_cv_header_linux_netlink_h" = "yes"]) AM_CONDITIONAL(HAVE_NETLINK, [test "$ac_cv_header_linux_netlink_h" = "yes"])
case $host in case $host in