summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-01-17 09:12:45 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-17 14:50:23 -0500
commit5352c9b3609bca63814f9f6f03dbbbadf6c6333a (patch)
treeb066ac5fbd429af1966451bb6e9ec077bca63fc5 /src/external
parent50b2904bc09dee04fbc5b13246a33f5d3b257d2e (diff)
downloadsssd-5352c9b3609bca63814f9f6f03dbbbadf6c6333a.tar.gz
sssd-5352c9b3609bca63814f9f6f03dbbbadf6c6333a.tar.xz
sssd-5352c9b3609bca63814f9f6f03dbbbadf6c6333a.zip
Remove support for pre-1.1 netlink
Netlink 1.0 and older is buggy and unreliable, occasionally causing tight-loops. We're no longer going to try to support it. https://fedorahosted.org/sssd/ticket/755
Diffstat (limited to 'src/external')
-rw-r--r--src/external/libnl.m449
1 files changed, 24 insertions, 25 deletions
diff --git a/src/external/libnl.m4 b/src/external/libnl.m4
index ed8f95b63..36619ff87 100644
--- a/src/external/libnl.m4
+++ b/src/external/libnl.m4
@@ -1,35 +1,34 @@
dnl A macro to check the availability and version of libnetlink
+
AC_DEFUN([AM_CHECK_LIBNL],
[
- PKG_CHECK_MODULES(libnl, libnl-1)
-
- AC_CHECK_HEADERS(netlink.h)
- AC_CHECK_LIB(nl, nl_connect, [ LIBNL_LIBS="-lnl" ], [AC_MSG_ERROR([libnl is required])])
+ PKG_CHECK_MODULES(libnl, libnl-1 >= 1.1,[
+ HAVE_LIBNL=1
+ AC_SUBST(HAVE_LIBNL)
+ AC_DEFINE_UNQUOTED(HAVE_LIBNL, 1, [Build with libnetlink support])
- AC_CHECK_LIB([nl],
- [nl_handle_get_fd],
- [AC_DEFINE([HAVE_LIBNL_OLDER_THAN_1_1], 1, [Does libnl have pre-1.1 API?])
- ],
- )
+ AC_CHECK_HEADERS(netlink.h)
+ AC_CHECK_LIB(nl, nl_connect, [ LIBNL_LIBS="-lnl" ], [AC_MSG_ERROR([libnl is required])])
- dnl Check if this particular version of libnl supports particular functions
- AC_CHECK_LIB([nl],
- [nl_socket_add_membership],
- [AC_DEFINE([HAVE_NL_SOCKET_ADD_MEMBERSHIP], 1, [Does libnl have nl_socket_add_membership?])
- ],
- )
+ dnl Check if this particular version of libnl supports particular functions
+ AC_CHECK_LIB([nl],
+ [nl_socket_add_membership],
+ [AC_DEFINE([HAVE_NL_SOCKET_ADD_MEMBERSHIP], 1, [Does libnl have nl_socket_add_membership?])
+ ],
+ )
- AC_CHECK_LIB([nl],
- [nl_socket_modify_cb],
- [AC_DEFINE([HAVE_NL_SOCKET_MODIFY_CB], 1, [Does libnl have nl_socket_modify_cb?])
- ],
- )
+ AC_CHECK_LIB([nl],
+ [nl_socket_modify_cb],
+ [AC_DEFINE([HAVE_NL_SOCKET_MODIFY_CB], 1, [Does libnl have nl_socket_modify_cb?])
+ ],
+ )
- AC_CHECK_LIB([nl],
- [nl_set_passcred],
- [AC_DEFINE([HAVE_NL_SET_PASSCRED], 1, [Does libnl have nl_set_passcred?])
- ],
- )
+ AC_CHECK_LIB([nl],
+ [nl_set_passcred],
+ [AC_DEFINE([HAVE_NL_SET_PASSCRED], 1, [Does libnl have nl_set_passcred?])
+ ],
+ )
+ ],[AC_MSG_WARN([Netlink support unavailable or too old])])
AC_SUBST(LIBNL_CFLAGS)
AC_SUBST(LIBNL_LIBS)