From 1781ecda341fb06fd414a4d84bb363b070958ea4 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 8 Jul 2018 20:53:43 +0200 Subject: CMake: add a LIBVNCSERVER_HAVE_GNUTLS #define --- CMakeLists.txt | 4 ++++ rfb/rfbconfig.h.cmakein | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8097158..995cbc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -232,6 +232,10 @@ if(WITH_GCRYPT AND LIBGCRYPT_LIBRARIES) set(ADDITIONAL_LIBS ${ADDITIONAL_LIBS} ${LIBGCRYPT_LIBRARIES}) endif(WITH_GCRYPT AND LIBGCRYPT_LIBRARIES) +if(GNUTLS_FOUND) + set(LIBVNCSERVER_HAVE_GNUTLS 1) +endif(GNUTLS_FOUND) + if(OPENSSL_FOUND) set(LIBVNCSERVER_HAVE_LIBSSL 1) endif(OPENSSL_FOUND) diff --git a/rfb/rfbconfig.h.cmakein b/rfb/rfbconfig.h.cmakein index 613149a..2d165c5 100644 --- a/rfb/rfbconfig.h.cmakein +++ b/rfb/rfbconfig.h.cmakein @@ -142,6 +142,9 @@ /* Define to 1 if libgcrypt is present */ #cmakedefine LIBVNCSERVER_WITH_CLIENT_GCRYPT 1 +/* Define to 1 if GnuTLS is present */ +#cmakedefine LIBVNCSERVER_HAVE_GNUTLS 1 + /* Define to 1 if OpenSSL is present */ #cmakedefine LIBVNCSERVER_HAVE_LIBSSL 1 -- cgit v1.2.1