From: David Bremner Date: Sat, 27 May 2017 16:51:17 +0000 (-0300) Subject: configure: add optional support for gmime-3.0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6977316a5f6ffa4f7df8ae26963c4629740b6c9d;p=notmuch.git configure: add optional support for gmime-3.0 This is only the changes to make configure work; it won't compile with gmime-3.0 yet. --- diff --git a/configure b/configure index ed7c2280..91aeba51 100755 --- a/configure +++ b/configure @@ -484,8 +484,13 @@ fi GMIME_MINVER=2.6.7 printf "Checking for GMime development files... " -if pkg-config --exists "gmime-2.6 >= $GMIME_MINVER"; then - printf "Yes.\n" +if pkg-config --exists "gmime-3.0"; then + printf "Yes (3.0).\n" + have_gmime=1 + gmime_cflags=$(pkg-config --cflags gmime-3.0) + gmime_ldflags=$(pkg-config --libs gmime-3.0) +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)