Patchwork [8/9] Make python mandatory

login
register
mail settings
Submitter Stefan Hajnoczi
Date Jan. 6, 2012, 3:51 p.m.
Message ID <1325865088-23897-9-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/134681/
State New
Headers show

Comments

Stefan Hajnoczi - Jan. 6, 2012, 3:51 p.m.
From: Sebastian Herbszt <herbszt@gmx.de>

The QEMU build depends on Python so make it an explicit requirement.

Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 configure |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

Patch

diff --git a/configure b/configure
index a1394eb..d88e3ea 100755
--- a/configure
+++ b/configure
@@ -1197,13 +1197,9 @@  if test "$solaris" = "yes" ; then
   fi
 fi
 
-if test "$guest_agent" != "no" ; then
-  if has $python; then
-    :
-  else
-    echo "Python not found. Use --python=/path/to/python"
-    exit 1
-  fi
+if ! has $python; then
+  echo "Python not found. Use --python=/path/to/python"
+  exit 1
 fi
 
 if test -z "$target_list" ; then