From 90acbcf20b5f896ca8f631923afe946c90d90de7 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 27 Jun 2010 21:22:11 +0200 Subject: Use netlink to detect going online Integrates libnl to detect adding routes. When a route is added, the offline status of all back ends is reset. This patch adds no heuristics to detect whether back end went offline. Fixes: #456 --- src/conf_macros.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/conf_macros.m4') diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 65de7fbdb..cb4b32557 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -233,3 +233,19 @@ AC_DEFUN([WITH_SEMANAGE], fi AM_CONDITIONAL([BUILD_SEMANAGE], [test x"$with_semanage" = xyes]) ]) + +AC_DEFUN([WITH_LIBNL], + [ AC_ARG_WITH([libnl], + [AC_HELP_STRING([--with-libnl], + [Whether to build with libnetlink support [yes]] + ) + ], + [], + with_libnl=yes + ) + if test x"$with_libnl" = xyes; then + HAVE_LIBNL=1 + AC_SUBST(HAVE_LIBNL) + AC_DEFINE_UNQUOTED(HAVE_LIBNL, 1, [Build with libnetlink support]) + fi + ]) -- cgit