Skip to content

Commit

Permalink
Fix build fail on Archlinux
Browse files Browse the repository at this point in the history
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 17, 2019
1 parent 1d86958 commit 87df43f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions configure.ac
Expand Up @@ -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])
Expand Down

0 comments on commit 87df43f

Please sign in to comment.