Commit 6b60690a authored by Christian Beier's avatar Christian Beier

CMake: Check for libgcrypt availability.

parent 88792137
...@@ -19,6 +19,7 @@ find_package(SDL) ...@@ -19,6 +19,7 @@ find_package(SDL)
find_package(GnuTLS) find_package(GnuTLS)
find_package(Threads) find_package(Threads)
find_package(X11) find_package(X11)
find_library(LIBGCRYPT_LIBRARIES gcrypt)
if(Threads_FOUND) if(Threads_FOUND)
option(TIGHTVNC_FILETRANSFER "Enable filetransfer" ON) option(TIGHTVNC_FILETRANSFER "Enable filetransfer" ON)
...@@ -33,6 +34,11 @@ option(LIBVNCSERVER_ALLOW24BPP "Allow 24 bpp" ON) ...@@ -33,6 +34,11 @@ option(LIBVNCSERVER_ALLOW24BPP "Allow 24 bpp" ON)
if(GNUTLS_FOUND) if(GNUTLS_FOUND)
set(LIBVNCSERVER_WITH_CLIENT_TLS 1) set(LIBVNCSERVER_WITH_CLIENT_TLS 1)
endif(GNUTLS_FOUND) 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("fcntl.h" LIBVNCSERVER_HAVE_FCNTL_H)
check_include_file("netinet/in.h" LIBVNCSERVER_HAVE_NETINET_IN_H) check_include_file("netinet/in.h" LIBVNCSERVER_HAVE_NETINET_IN_H)
......
...@@ -54,6 +54,9 @@ ...@@ -54,6 +54,9 @@
/* Define to the version of this package. */ /* Define to the version of this package. */
#define LIBVNCSERVER_PACKAGE_VERSION "@PACKAGE_VERSION@" #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 */ /* Define to 1 if GnuTLS is present */
#cmakedefine LIBVNCSERVER_WITH_CLIENT_TLS 1 #cmakedefine LIBVNCSERVER_WITH_CLIENT_TLS 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment