Use libnl 1.1 API.
[util-vserver-pl.git] / configure.ac
index 2274448..2dec4a4 100644 (file)
@@ -77,11 +77,6 @@ dnl {check for libnl
 dnl
 
 ensc_have_libnl=yes
-LIBNL_ROOT=`readlink -f ../libnl*/`
-if test -d "$LIBNL_ROOT"; then
-       CFLAGS="$CFLAGS -I ${LIBNL_ROOT}/include"
-       LDFLAGS="$LDFLAGS -L${LIBNL_ROOT}/lib"
-fi
 
 if test x"$ensc_have_libnl" = xyes; then
        AC_CHECK_HEADERS([asm/types.h stdint.h], [ : ],
@@ -110,7 +105,7 @@ if test x"$ensc_have_libnl" = xyes; then
 fi
 
 if test x"$ensc_have_libnl" = xyes; then
-       AC_CHECK_LIB(nl, nlmsg_get_src, [ : ],
+       AC_CHECK_LIB(nl, nl_handle_alloc_cb, [ : ],
                     [ ensc_have_libnl=no ])
 fi