qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 20/20] Add sparse to new feature convention


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 20/20] Add sparse to new feature convention
Date: Wed, 12 Aug 2009 18:29:57 +0200

Once there, move to a proper test to see if we are going to use it or not

Signed-off-by: Juan Quintela <address@hidden>
---
 configure |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/configure b/configure
index 009ecef..3dab9ac 100755
--- a/configure
+++ b/configure
@@ -189,6 +189,7 @@ kvm=""
 nptl=""
 pthread=""
 sdl=""
+sparse="no"
 vde=""
 vnc_tls=""
 vnc_sasl=""
@@ -197,7 +198,6 @@ xen=""
 gprof="no"
 debug_tcg="no"
 debug="no"
-sparse="no"
 strip_opt="yes"
 bigendian="no"
 mingw32="no"
@@ -711,10 +711,6 @@ echo "NOTE: The object files are built at the place where 
configure is launched"
 exit 1
 fi

-if test ! -x "$(which cgcc 2>/dev/null)"; then
-    sparse="no"
-fi
-
 #
 # Solaris specific configure tool chain decisions
 #
@@ -922,6 +918,19 @@ EOF
 fi

 ##########################################
+# Sparse probe
+if test "$sparse" != "no" ; then
+  if test -x "$(which cgcc 2>/dev/null)"; then
+    sparse=yes
+  else
+    if test "$sparse" = "yes" ; then
+      feature_not_found "sparse"
+    fi
+    sparse=no
+  fi
+fi
+
+##########################################
 # SDL probe

 sdl_too_old=no
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]