mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 07:50:17 +01:00
nl80211: check and link against LIBNL_GENL3
Allows using nl80211 with libnl3 Cc: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Thomas Graf <tgraf@redhat.com>
This commit is contained in:
parent
e8051a9b6f
commit
914b28a626
1 changed files with 4 additions and 3 deletions
|
|
@ -333,10 +333,11 @@ AC_DEFINE_UNQUOTED(NO_CONSOLEKIT, $no_ck, [Define to disable use of ConsoleKit])
|
|||
have_libnl="no"
|
||||
PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [have_libnl3=yes], [have_libnl3=no])
|
||||
PKG_CHECK_MODULES(LIBNL_ROUTE3, libnl-route-3.0, [have_libnl_route3=yes], [have_libnl_route3=no])
|
||||
if (test "${have_libnl3}" = "yes" -a "${have_libnl_route3}" = "yes"); then
|
||||
PKG_CHECK_MODULES(LIBNL_GENL3, libnl-genl-3.0, [have_libnl_genl3=yes], [have_libnl_genl3=no])
|
||||
if (test "${have_libnl3}" = "yes" -a "${have_libnl_route3}" = "yes" -a "${have_libnl_genl3}" = "yes"); then
|
||||
AC_DEFINE(HAVE_LIBNL3, 1, [Define if you require specific libnl-3 support])
|
||||
LIBNL_CFLAGS="$LIBNL3_CFLAGS $LIBNL_ROUTE3_CFLAGS"
|
||||
LIBNL_LIBS="$LIBNL3_LIBS $LIBNL_ROUTE3_LIBS"
|
||||
LIBNL_CFLAGS="$LIBNL3_CFLAGS $LIBNL_ROUTE3_CFLAGS $LIBNL_GENL3_CFLAGS"
|
||||
LIBNL_LIBS="$LIBNL3_LIBS $LIBNL_ROUTE3_LIBS $LIBNL_GENL3_LIBS"
|
||||
libnl_version="3"
|
||||
have_libnl="yes"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue