configure: Add support for GMime 2.6
authorAdrien Bustany <abustany@gnome.org>
Thu, 15 Apr 2010 23:41:55 +0000 (19:41 -0400)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Apr 2010 21:17:14 +0000 (14:17 -0700)
Notmuch compiles just fine with GMime 2.6, so accept it in the configure
script.

configure

index 7f5ca7d1936243439e253d15029f4ffbc56ff3c5..f69cd9259c531c53efac5893ae878bfcea4cbee2 100755 (executable)
--- a/configure
+++ b/configure
@@ -188,6 +188,11 @@ if pkg-config --modversion gmime-2.4 > /dev/null 2>&1; then
     have_gmime=1
     gmime_cflags=$(pkg-config --cflags gmime-2.4)
     gmime_ldflags=$(pkg-config --libs gmime-2.4)
+elif pkg-config --modversion gmime-2.6 > /dev/null 2>&1; then
+    printf "Yes.\n"
+    have_gmime=1
+    gmime_cflags=$(pkg-config --cflags gmime-2.6)
+    gmime_ldflags=$(pkg-config --libs gmime-2.6)
 else
     printf "No.\n"
     have_gmime=0