Skip to content
Permalink
Browse files

Fix build fail on Archlinux

The enchant on Archlinux is 2.2.3-2, that include enchant-2.pc.
This commit first check enchant-2, then check enchant.
  • Loading branch information...
yetist authored and raveit65 committed Feb 16, 2019
1 parent 1d86958 commit 87df43f876abd0f74ceecfb6ec3812edac30381f
Showing with 8 additions and 4 deletions.
  1. +8 −4 configure.ac
@@ -108,10 +108,14 @@ AC_ARG_ENABLE([spell],

if test "x$enable_enchant" = "xyes" ; then

PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED, \
have_enchant=yes, have_enchant=no)

if test "x$have_enchant" = "xyes"; then
PKG_CHECK_MODULES(ENCHANT, enchant-2 >= $ENCHANT_REQUIRED, \
have_enchant_2=yes, have_enchant_2=no)

if test "x$have_enchant_2" = "xno"; then
PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED, \
have_enchant=yes, have_enchant=no)
fi
if test "x$have_enchant_2" = "xyes" || test "x$have_enchant" = "xyes"; then

PKG_CHECK_EXISTS([iso-codes >= $ISO_CODES_REQUIRED],
[have_iso_codes=yes],[have_iso_codes=no])

0 comments on commit 87df43f

Please sign in to comment.
You can’t perform that action at this time.