]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
configure: improve misleading libnl3-devel missing error message
authorShanzhi Yu <shyu@redhat.com>
Fri, 26 Sep 2014 05:50:13 +0000 (13:50 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 3 Oct 2014 14:08:44 +0000 (16:08 +0200)
When building libvirt from source with netcf-devel installed, the
configure script reports error "libnl-devel >=3.0 is required for
macvtap support", while actually libnl3-devel is required.

Signed-off-by: Shanzhi Yu <shyu@redhat.com>
configure.ac

index ec9d028e8f25c516d509eb71fb3cfc0055d2cae0..f7b02ff80e417d730522d913aad0ca701b411ff7 100644 (file)
@@ -2613,7 +2613,11 @@ if test "$with_linux" = "yes"; then
              [whether the netlink v1 library is available])
         ], [
             if test "$with_macvtap" = "yes"; then
-                AC_MSG_ERROR([libnl-devel >= $LIBNL_REQUIRED is required for macvtap support])
+                    if test "$LIBNL_REQUIRED" = "3.0";then
+                        AC_MSG_ERROR([libnl3-devel >= $LIBNL_REQUIRED is required for macvtap support])
+                    else
+                        AC_MSG_ERROR([libnl-devel >= $LIBNL_REQUIRED is required for macvtap support])
+                    fi
             fi
         ])
     fi