diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-12 18:20:28 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-27 19:33:13 -0500 |
commit | 1be10ad28bb301f5aca980ab8241765b7f3d3011 (patch) | |
tree | ff3f9751ca5c3fb3fc404ac0e6f5805e97c3271f /configure | |
parent | dfb278bde1f6e6f6507607dc65d7bdacb5f5d77c (diff) | |
download | qemu-1be10ad28bb301f5aca980ab8241765b7f3d3011.zip qemu-1be10ad28bb301f5aca980ab8241765b7f3d3011.tar.gz qemu-1be10ad28bb301f5aca980ab8241765b7f3d3011.tar.bz2 |
Add vnc_tls 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-x | configure | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -179,6 +179,7 @@ esac brlapi="" vde="" +vnc_tls="" gprof="no" debug_tcg="no" @@ -192,7 +193,6 @@ slirp="yes" fmod_lib="" fmod_inc="" oss_lib="" -vnc_tls="yes" vnc_sasl="yes" bsd="no" linux="no" @@ -435,6 +435,8 @@ for opt do ;; --disable-vnc-tls) vnc_tls="no" ;; + --enable-vnc-tls) vnc_tls="yes" + ;; --disable-vnc-sasl) vnc_sasl="no" ;; --disable-slirp) slirp="no" @@ -614,6 +616,7 @@ echo " --disable-xen disable xen backend driver support" echo " --disable-brlapi disable BrlAPI" echo " --enable-brlapi enable BrlAPI" echo " --disable-vnc-tls disable TLS encryption for VNC server" +echo " --enable-vnc-tls enable TLS encryption for VNC server" echo " --disable-vnc-sasl disable SASL encryption for VNC server" echo " --disable-curses disable curses output" echo " --disable-curl disable curl connectivity" @@ -907,18 +910,22 @@ fi ########################################## # VNC TLS detection -if test "$vnc_tls" = "yes" ; then -cat > $TMPC <<EOF +if test "$vnc_tls" != "no" ; then + cat > $TMPC <<EOF #include <gnutls/gnutls.h> int main(void) { gnutls_session_t s; gnutls_init(&s, GNUTLS_SERVER); return 0; } EOF - vnc_tls_cflags=`pkg-config --cflags gnutls 2> /dev/null` - vnc_tls_libs=`pkg-config --libs gnutls 2> /dev/null` - if compile_prog "$vnc_tls_cflags" "$vnc_tls_libs" ; then - libs_softmmu="$vnc_tls_libs $libs_softmmu" - else - vnc_tls="no" + vnc_tls_cflags=`pkg-config --cflags gnutls 2> /dev/null` + vnc_tls_libs=`pkg-config --libs gnutls 2> /dev/null` + if compile_prog "$vnc_tls_cflags" "$vnc_tls_libs" ; then + vnc_tls=yes + libs_softmmu="$vnc_tls_libs $libs_softmmu" + else + if test "$vnc_tls" = "yes" ; then + feature_not_found "vnc-tls" fi + vnc_tls=no + fi fi ########################################## |