From b232503b5f032faf94da0413ae709a121666e0fd Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 29 Jun 2012 01:13:09 +0200 Subject: [PATCH] libvncserver: improved to disable gcrypt support if it is not available and to provide some hint where to find it if available --- x11/libvncserver/libvncserver.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x11/libvncserver/libvncserver.conf b/x11/libvncserver/libvncserver.conf index 4b2c48b91..711906ec8 100644 --- a/x11/libvncserver/libvncserver.conf +++ b/x11/libvncserver/libvncserver.conf @@ -20,3 +20,9 @@ if atstage cross; then # assume we have gettimeofday() var_append configcache ' ' "ac_cv_func_gettimeofday=yes" fi + +if ! pkginstalled -f libgcrypt; then + var_append extraconfopt ' ' "--without-gcrypt" +else + var_append extraconfopt ' ' "--with-libgcrypt-prefix=$( pkgprefix -r libgcrypt )" +fi