aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-05-27 13:51:18 -0300
committerDavid Bremner <david@tethera.net>2017-05-31 21:54:08 -0300
commit6ac3d8c27f8edc8b3b84440900771053d6efd9dd (patch)
treee39c5e1ca32726e497f54a6c50e714dda9631001 /configure
parent6977316a5f6ffa4f7df8ae26963c4629740b6c9d (diff)
test: define GMime version dependant breakage
We have some tests where the gmime 3 behaviour seems like a bug fix, others where it's less clear, so we allow both possibilities.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 91aeba51..c5e2ffed 100755
--- a/configure
+++ b/configure
@@ -489,11 +489,13 @@ if pkg-config --exists "gmime-3.0"; then
have_gmime=1
gmime_cflags=$(pkg-config --cflags gmime-3.0)
gmime_ldflags=$(pkg-config --libs gmime-3.0)
+ gmime_major=3
elif pkg-config --exists "gmime-2.6 >= $GMIME_MINVER"; then
printf "Yes (2.6).\n"
have_gmime=1
gmime_cflags=$(pkg-config --cflags gmime-2.6)
gmime_ldflags=$(pkg-config --libs gmime-2.6)
+ gmime_major=2
else
have_gmime=0
printf "No.\n"
@@ -1212,6 +1214,9 @@ NOTMUCH_PYTHON=${python}
# building/testing ruby bindings.
NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}
+# Major version of gmime
+NOTMUCH_GMIME_MAJOR=${gmime_major}
+
# Platform we are run on
PLATFORM=${platform}
EOF