From 5e9da5a2f8317b58fd825bfd8f8083345ba59719 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sat, 14 Apr 2012 21:16:09 +0200 Subject: Add the OpenSSL libvncclient TLS version to the build system. --- libvncclient/Makefile.am | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'libvncclient/Makefile.am') diff --git a/libvncclient/Makefile.am b/libvncclient/Makefile.am index 5dec749..502b73d 100644 --- a/libvncclient/Makefile.am +++ b/libvncclient/Makefile.am @@ -1,6 +1,20 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/common -libvncclient_la_SOURCES=cursor.c listen.c rfbproto.c sockets.c vncviewer.c ../common/minilzo.c tls.c +if HAVE_GNUTLS +TLSSRCS = tls_gnutls.c +TLSLIBS = @GNUTLS_LIBS@ +else +if HAVE_LIBSSL +TLSSRCS = tls_openssl.c +TLSLIBS = @SSL_LIBS@ @CRYPT_LIBS@ +else +TLSSRCS = tls_none.c +endif +endif + + +libvncclient_la_SOURCES=cursor.c listen.c rfbproto.c sockets.c vncviewer.c ../common/minilzo.c $(TLSSRCS) +libvncclient_la_LIBADD=$(TLSLIBS) noinst_HEADERS=../common/lzodefs.h ../common/lzoconf.h ../common/minilzo.h tls.h -- cgit v1.2.1