summaryrefslogtreecommitdiff
path: root/mail-filter/anubis/files/4.1.1-gpgme.patch
blob: 7aa8ba578eec53385e41ec8c09e91749e7b5d66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- configure.ac	2011-06-13 19:40:37.856822010 +0300
+++ configure.ac	2011-06-13 19:43:27.000000000 +0300
@@ -149,10 +149,18 @@
    AC_MSG_CHECKING(for $1/include/gpgme.h)
    AC_MSG_RESULT([yes])
    return 0
+  else
+   if test -f "$1/include/gpgme/gpgme.h"; then
+    gpgmedir=1
+    INCLUDES="$INCLUDES -I$1/include/gpgme"
+    AC_MSG_CHECKING(for $1/include/gpgme/gpgme.h)
+    AC_MSG_RESULT([yes])
+    return 0
+   fi
   fi
   return 1
  }
- for maindir in /usr/pkg /opt /sw; do
+ for maindir in /usr/pkg /opt /sw /usr; do
   findgpgmedir $maindir && break 2
  done
  if test $gpgmedir; then
--- configure.ac	2011-06-17 11:54:29.000000000 +0000
+++ configure.ac	2011-06-17 11:56:22.000000000 +0000
@@ -137,6 +137,7 @@
 else
  AM_PATH_GPGME([1.0.0], with_gpgme=yes, with_gpgme=no)
  AC_CHECK_LIB(gpgme, main,, with_gpgme=no)
+ AC_CHECK_LIB(gpg-error, gpg_err_init,, with_gpgme=no)
 fi
 if test "$with_gpgme" = "no"; then
  AC_MSG_RESULT([Disabling GPGME support...])