# --enable-foo that exits if feature is not found
brlapi=""
+curses=""
vde=""
vnc_tls=""
vnc_sasl=""
guest_base=""
build_docs="yes"
uname_release=""
-curses="yes"
curl="yes"
io_thread="no"
nptl="yes"
;;
--disable-curses) curses="no"
;;
+ --enable-curses) curses="yes"
+ ;;
--disable-curl) curl="no"
;;
--disable-nptl) nptl="no"
echo " --disable-vnc-sasl disable SASL encryption for VNC server"
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 " --disable-bluez disable bluez stack connectivity"
echo " --disable-kvm disable KVM acceleration support"
# curses probe
curses_list="-lncurses -lcurses"
-if test "$curses" = "yes" ; then
- curses=no
+if test "$curses" != "no" ; then
+ curses_found=no
cat > $TMPC << EOF
#include <curses.h>
#ifdef __OpenBSD__
EOF
for curses_lib in $curses_list; do
if compile_prog "" "$curses_lib" ; then
- curses=yes
+ curses_found=yes
libs_softmmu="$curses_lib $libs_softmmu"
break
fi
done
+ if test "$curses_found" = "yes" ; then
+ curses=yes
+ else
+ if test "$curses" = "yes" ; then
+ feature_not_found "curses"
+ fi
+ curses=no
+ fi
fi
##########################################