提交 1be10ad2 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

Add vnc_tls to new feature convencion

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 dfb278bd
...@@ -179,6 +179,7 @@ esac ...@@ -179,6 +179,7 @@ esac
brlapi="" brlapi=""
vde="" vde=""
vnc_tls=""
gprof="no" gprof="no"
debug_tcg="no" debug_tcg="no"
...@@ -192,7 +193,6 @@ slirp="yes" ...@@ -192,7 +193,6 @@ slirp="yes"
fmod_lib="" fmod_lib=""
fmod_inc="" fmod_inc=""
oss_lib="" oss_lib=""
vnc_tls="yes"
vnc_sasl="yes" vnc_sasl="yes"
bsd="no" bsd="no"
linux="no" linux="no"
...@@ -435,6 +435,8 @@ for opt do ...@@ -435,6 +435,8 @@ for opt do
;; ;;
--disable-vnc-tls) vnc_tls="no" --disable-vnc-tls) vnc_tls="no"
;; ;;
--enable-vnc-tls) vnc_tls="yes"
;;
--disable-vnc-sasl) vnc_sasl="no" --disable-vnc-sasl) vnc_sasl="no"
;; ;;
--disable-slirp) slirp="no" --disable-slirp) slirp="no"
...@@ -614,6 +616,7 @@ echo " --disable-xen disable xen backend driver support" ...@@ -614,6 +616,7 @@ echo " --disable-xen disable xen backend driver support"
echo " --disable-brlapi disable BrlAPI" echo " --disable-brlapi disable BrlAPI"
echo " --enable-brlapi enable BrlAPI" echo " --enable-brlapi enable BrlAPI"
echo " --disable-vnc-tls disable TLS encryption for VNC server" 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-vnc-sasl disable SASL encryption for VNC server"
echo " --disable-curses disable curses output" echo " --disable-curses disable curses output"
echo " --disable-curl disable curl connectivity" echo " --disable-curl disable curl connectivity"
...@@ -907,18 +910,22 @@ fi ...@@ -907,18 +910,22 @@ fi
########################################## ##########################################
# VNC TLS detection # VNC TLS detection
if test "$vnc_tls" = "yes" ; then if test "$vnc_tls" != "no" ; then
cat > $TMPC <<EOF cat > $TMPC <<EOF
#include <gnutls/gnutls.h> #include <gnutls/gnutls.h>
int main(void) { gnutls_session_t s; gnutls_init(&s, GNUTLS_SERVER); return 0; } int main(void) { gnutls_session_t s; gnutls_init(&s, GNUTLS_SERVER); return 0; }
EOF EOF
vnc_tls_cflags=`pkg-config --cflags gnutls 2> /dev/null` vnc_tls_cflags=`pkg-config --cflags gnutls 2> /dev/null`
vnc_tls_libs=`pkg-config --libs gnutls 2> /dev/null` vnc_tls_libs=`pkg-config --libs gnutls 2> /dev/null`
if compile_prog "$vnc_tls_cflags" "$vnc_tls_libs" ; then if compile_prog "$vnc_tls_cflags" "$vnc_tls_libs" ; then
libs_softmmu="$vnc_tls_libs $libs_softmmu" vnc_tls=yes
else libs_softmmu="$vnc_tls_libs $libs_softmmu"
vnc_tls="no" else
if test "$vnc_tls" = "yes" ; then
feature_not_found "vnc-tls"
fi fi
vnc_tls=no
fi
fi fi
########################################## ##########################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册