Patchwork [06/20] Add vde to new feature convencion

login
register
mail settings
Submitter Juan Quintela
Date Aug. 12, 2009, 4:20 p.m.
Message ID <7abe31bc54f296b9fbcb7e32d86f54010c071a2a.1250093910.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31207/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 12, 2009, 4:20 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

Patch

diff --git a/configure b/configure
index 34ccc0e..c51d9d3 100755
--- a/configure
+++ b/configure
@@ -180,6 +180,8 @@  esac
 # --enable-foo that exits if feature is not found

 brlapi=""
+vde=""
+
 gprof="no"
 debug_tcg="no"
 debug="no"
@@ -189,7 +191,6 @@  bigendian="no"
 mingw32="no"
 EXESUF=""
 slirp="yes"
-vde="yes"
 fmod_lib=""
 fmod_inc=""
 oss_lib=""
@@ -463,6 +464,8 @@  for opt do
   ;;
   --disable-vde) vde="no"
   ;;
+  --enable-vde) vde="yes"
+  ;;
   --disable-kqemu) kqemu="no"
   ;;
   --disable-xen) xen="no"
@@ -660,6 +663,7 @@  echo "  --oss-lib                path to OSS library"
 echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"
 echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"
 echo "  --disable-vde            disable support for vde network"
+echo "  --enable-vde             enable support for vde network"
 echo "  --disable-pthread        disable pthread support"
 echo "  --disable-aio            disable AIO support"
 echo "  --enable-io-thread       enable IO thread"
@@ -978,8 +982,7 @@  fi

 ##########################################
 # vde libraries probe
-if test "$vde" = "yes" ; then
-  vde=no
+if test "$vde" != "no" ; then
   vde_libs="-lvdeplug"
   cat > $TMPC << EOF
 #include <libvdeplug.h>
@@ -994,6 +997,11 @@  EOF
     vde=yes
     libs_softmmu="$vde_libs $libs_softmmu"
     libs_tools="$vde_libs $libs_tools"
+  else
+    if test "$vde" = "yes" ; then
+      feature_not_found "vde"
+    fi
+    vde=no
   fi
 fi