Check for enchant-2 (necessary since enchant 2.1.3).

This commit is contained in:
wwp 2018-04-10 09:26:21 +02:00 committed by Andrej Kacian
parent b087151152
commit dfa7cbbc44

View file

@ -584,8 +584,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)