From daeb181fa2c7bb2e6aeb44344a73b6fe448a388d Mon Sep 17 00:00:00 2001 From: Alfredo Matos Date: Fri, 29 Jul 2011 14:47:37 +0100 Subject: core: add libnl-3 API compatibility --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 608765b616..509de590e5 100644 --- a/configure.ac +++ b/configure.ac @@ -331,6 +331,15 @@ if (test "${have_libnl2}" = "yes"); then have_libnl="yes" fi +PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [have_libnl2=yes], [have_libnl2=no]) +if (test "${have_libnl2}" = "yes"); then + AC_DEFINE(HAVE_LIBNL3, 1, [Define if you require specific libnl-3 support]) + LIBNL_CFLAGS="$LIBNL3_CFLAGS" + LIBNL_LIBS="$LIBNL3_LIBS" + libnl_version="3" + have_libnl="yes" +fi + if (test "${have_libnl}" = "no"); then AC_MSG_ERROR([libnl development header are required]) fi -- cgit v1.2.3