Re: [PATCH] nl80211: Check and link against LIBNL_GENL3



On Thu, 2011-11-10 at 12:43 +0100, Thomas Graf wrote:
> Allows using nl80211 with libnl3
> 
> Cc: Johannes Berg <johannes sipsolutions net>
> Signed-off-by: Thomas Graf <tgraf redhat com>

Applied, thanks.

Dan

> ---
>  configure.ac |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index ac691c4..a66a086 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]