Check for enchant-2 (necessary since enchant 2.1.3).
[claws.git] / configure.ac
index 87c95e5779110812f3b3b12c2b8ef5a1df76af14..791a2dd3a0eca597e6ed129dc6b607787b8cfa98 100644 (file)
@@ -596,8 +596,16 @@ if test $enable_enchant = yes; then
                enable_enchant=yes
        ],
        [
-               echo "Building without enchant-notification"
-               enable_enchant=no
+               PKG_CHECK_MODULES(ENCHANT, enchant-2 >= 2.0.0,
+               [
+                       AC_DEFINE(USE_ENCHANT, 1, enchant-2)
+                       echo "Building with enchant-2"
+                       enable_enchant=yes
+               ],
+               [
+                       echo "Building without enchant-notification"
+                       enable_enchant=no
+               ])
        ])
        AC_SUBST(ENCHANT_CFLAGS)
        AC_SUBST(ENCHANT_LIBS)