X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=configure.ac;h=56e7bc07b9b18cd5213414ccf1eb96eb2eb6ab92;hb=e33814b72dc77e690941742fe82920cab9376799;hp=dad7f3dacc66619474bf1c107a703b80a389b878;hpb=ec4370f7ebd7fb0ce7f002f5bf2c74f03acd3ec1;p=util-vserver.git diff --git a/configure.ac b/configure.ac index dad7f3d..56e7bc0 100644 --- a/configure.ac +++ b/configure.ac @@ -336,6 +336,43 @@ dnl beecrypt stuff ends here} dnl dnl ######################## +dnl ######################## +dnl +dnl {check for libnl +dnl + +ensc_have_libnl=yes +LIBNL_ROOT=`echo ../libnl*/` +if test -d "$LIBNL_ROOT"; then + CFLAGS="$CFLAGS -isystem $LIBNL_ROOT/include" + LDFLAGS="$LDFLAGS -L$LIBNL_ROOT/lib" +fi + +if test x"$ensc_have_libnl" = xyes; then + AC_CHECK_HEADERS([netlink/netlink.h netlink/route/addr.h], [ : ], + [ ensc_have_libnl=no ]) +fi + +if test x"$ensc_have_libnl" = xyes; then + AC_CHECK_LIB(nl, rtnl_addr_alloc, [ : ], + [ ensc_have_libnl=no ]) +fi + +if test x"$ensc_have_libnl" != xyes; then + AC_MSG_WARN([ +**** +**** 'libnl' could not be found; +**** this will disable the build of 'vip6-autod' +****]) +fi + +AM_CONDITIONAL(ENSC_HAVE_LIBNL, test x"$ensc_have_libnl" = xyes) + +dnl +dnl libnl stuff ends here} +dnl +dnl ####################### + dnl Check what distro this is, use Gentoo initscripts if appropriate AC_MSG_CHECKING([for host initscripts])