aboutsummaryrefslogtreecommitdiff
path: root/libraries/libvmime/gnutls-28.patch
blob: d502868b926eb74fccb4c0a8d2270c676c71a05e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- libvmime-0.9.0.orig/configure
+++ libvmime-0.9.0/configure
@@ -30792,12 +30792,14 @@
   { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
   no_libgnutls=""
-  if test "$LIBGNUTLS_CONFIG" = "no" ; then
+#  if test "$LIBGNUTLS_CONFIG" = "no" ; then
+  if [ ! $(pkg-config --modversion  gnutls-extra 2> /dev/null) ]; then
     no_libgnutls=yes
   else
-    LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
-    LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
-    libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
+    LIBGNUTLS_CONFIG=""
+    LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --cflags gnutls-extra`
+    LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --libs gnutls-extra`
+    libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --modversion gnutls-extra`
 
 
       ac_save_CFLAGS="$CFLAGS"