aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-12 18:29:47 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 19:33:13 -0500
commit788c8196f74f5b23243c6494b4ae4195a9549659 (patch)
tree801c5d9b2bf657b8d7f83b1c03c64f2490ce002f /configure
parentc584a6d0618efa90aaf5f6b7ea30a0e3d160b96f (diff)
downloadqemu-788c8196f74f5b23243c6494b4ae4195a9549659.zip
qemu-788c8196f74f5b23243c6494b4ae4195a9549659.tar.gz
qemu-788c8196f74f5b23243c6494b4ae4195a9549659.tar.bz2
Add curl to new feature convencion
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure b/configure
index 0f9e132..ffedac8 100755
--- a/configure
+++ b/configure
@@ -178,6 +178,7 @@ esac
# --enable-foo that exits if feature is not found
brlapi=""
+curl=""
curses=""
vde=""
vnc_tls=""
@@ -207,7 +208,6 @@ bsd_user="no"
guest_base=""
build_docs="yes"
uname_release=""
-curl="yes"
io_thread="no"
nptl="yes"
mixemu="no"
@@ -504,6 +504,8 @@ for opt do
;;
--disable-curl) curl="no"
;;
+ --enable-curl) curl="yes"
+ ;;
--disable-nptl) nptl="no"
;;
--enable-mixemu) mixemu="yes"
@@ -626,6 +628,7 @@ echo " --enable-vnc-sasl enable SASL encryption for VNC server"
echo " --disable-curses disable curses output"
echo " --enable-curses enable curses output"
echo " --disable-curl disable curl connectivity"
+echo " --enable-curl enable curl connectivity"
echo " --disable-bluez disable bluez stack connectivity"
echo " --disable-kvm disable KVM acceleration support"
echo " --disable-nptl disable usermode NPTL support"
@@ -1136,8 +1139,7 @@ fi
##########################################
# curl probe
-if test "$curl" = "yes" ; then
- curl=no
+if test "$curl" != "no" ; then
cat > $TMPC << EOF
#include <curl/curl.h>
int main(void) { return curl_easy_init(); }
@@ -1148,6 +1150,11 @@ EOF
curl=yes
libs_tools="$curl_libs $libs_tools"
libs_softmmu="$curl_libs $libs_softmmu"
+ else
+ if test "$curl" = "yes" ; then
+ feature_not_found "curl"
+ fi
+ curl=no
fi
fi # test "$curl"