Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
--- weechat-1.6/configure.orig	2016-11-15 19:19:45.531918300 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
+++ weechat-1.6/configure	2016-11-15 19:23:22.078226900 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
@@ -23683,7 +23683,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
 $as_echo "yes" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
     GCRYPT_CFLAGS=`libgcrypt-config --cflags`
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
-    GCRYPT_LFLAGS=`libgcrypt-config --libs`
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
+    GCRYPT_LFLAGS="-lgcrypt -lgpg-error"
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
 
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
 
Lucio Andrés Illanes Albornoz (arab, vxp) d22fca
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
@@ -23760,8 +23760,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
     else
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 $as_echo "yes" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
-        GNUTLS_CFLAGS=`pkg-config gnutls --cflags`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
-        GNUTLS_LFLAGS=`pkg-config gnutls --libs`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
+        GNUTLS_CFLAGS=`$PKG_CONFIG gnutls --cflags`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
+        GNUTLS_LFLAGS=`$PKG_CONFIG gnutls --libs`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
         $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
@@ -23972,8 +23972,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 $as_echo "yes" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
-    ZLIB_CFLAGS=`pkg-config zlib --cflags`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
-    ZLIB_LFLAGS=`pkg-config zlib --libs`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
+    ZLIB_CFLAGS=`$PKG_CONFIG zlib --cflags`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
+    ZLIB_LFLAGS=`$PKG_CONFIG zlib --libs`
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
 fi