summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-12 23:17:46 +0100
committerChristian Beier <dontmind@freeshell.org>2011-03-12 23:17:46 +0100
commit6b60690a4a1642c77bd6ac42789c4da6ed770075 (patch)
tree8e41546d72230a12eedd96c8b5c29dfc18a6914c
parent887921373489576e812f48053ae5a7aefa661a28 (diff)
downloadlibvncserver-6b60690a4a1642c77bd6ac42789c4da6ed770075.zip
libvncserver-6b60690a4a1642c77bd6ac42789c4da6ed770075.tar.gz
CMake: Check for libgcrypt availability.
-rw-r--r--CMakeLists.txt6
-rw-r--r--rfb/rfbconfig.h.cmake3
2 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 37b8e4c..a5425cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,7 @@ find_package(SDL)
find_package(GnuTLS)
find_package(Threads)
find_package(X11)
+find_library(LIBGCRYPT_LIBRARIES gcrypt)
if(Threads_FOUND)
option(TIGHTVNC_FILETRANSFER "Enable filetransfer" ON)
@@ -33,6 +34,11 @@ option(LIBVNCSERVER_ALLOW24BPP "Allow 24 bpp" ON)
if(GNUTLS_FOUND)
set(LIBVNCSERVER_WITH_CLIENT_TLS 1)
endif(GNUTLS_FOUND)
+if(LIBGCRYPT_LIBRARIES)
+ message(STATUS "Found libgcrypt: ${LIBGCRYPT_LIBRARIES}")
+ set(LIBVNCSERVER_WITH_CLIENT_GCRYPT 1)
+endif(LIBGCRYPT_LIBRARIES)
+
check_include_file("fcntl.h" LIBVNCSERVER_HAVE_FCNTL_H)
check_include_file("netinet/in.h" LIBVNCSERVER_HAVE_NETINET_IN_H)
diff --git a/rfb/rfbconfig.h.cmake b/rfb/rfbconfig.h.cmake
index f9f9ba3..de898fc 100644
--- a/rfb/rfbconfig.h.cmake
+++ b/rfb/rfbconfig.h.cmake
@@ -54,6 +54,9 @@
/* Define to the version of this package. */
#define LIBVNCSERVER_PACKAGE_VERSION "@PACKAGE_VERSION@"
+/* Define to 1 if libgcrypt is present */
+#cmakedefine LIBVNCSERVER_WITH_CLIENT_GCRYPT 1
+
/* Define to 1 if GnuTLS is present */
#cmakedefine LIBVNCSERVER_WITH_CLIENT_TLS 1
OpenPOWER on IntegriCloud