]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
m4: Don't enable bash-completion by default
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jan 2018 21:11:15 +0000 (22:11 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Jan 2018 09:43:30 +0000 (10:43 +0100)
Due to the way that check logic was written we basically enabled
bash completion whenever readline was enabled. This is not right
because it made bash-completion pkg-config module required.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
m4/virt-bash-completion.m4

index e1ef58740d3850023cf270e7cae446bc02aea675..c8342176f8bafd8d5d858464430b8f7b7c2598e9 100644 (file)
@@ -30,14 +30,10 @@ AC_DEFUN([LIBVIRT_CHECK_BASH_COMPLETION], [
   AC_REQUIRE([LIBVIRT_CHECK_READLINE])
 
   if test "x$with_readline" != "xyes" ; then
-    if test "x$with_bash_completion" != "xyes" ; then
-      with_bash_completion=no
-    else
+    if test "x$with_bash_completion" = "xyes" ; then
       AC_MSG_ERROR([readline is required for bash completion support])
-    fi
-  else
-    if test "x$with_bash_completion" = "xcheck" ; then
-      with_bash_completion=yes
+    else
+      with_bash_completion=no
     fi
   fi