Skip to content

Commit 50a3efc

Browse files
yetistraveit65
authored andcommitted
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.
1 parent 1fbaec5 commit 50a3efc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

‎configure.ac‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,14 @@ AC_ARG_ENABLE([spell],
108108

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

111-
PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED, \
112-
have_enchant=yes, have_enchant=no)
113-
114-
if test "x$have_enchant" = "xyes"; then
111+
PKG_CHECK_MODULES(ENCHANT, enchant-2 >= $ENCHANT_REQUIRED, \
112+
have_enchant_2=yes, have_enchant_2=no)
113+
114+
if test "x$have_enchant_2" = "xno"; then
115+
PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED, \
116+
have_enchant=yes, have_enchant=no)
117+
fi
118+
if test "x$have_enchant_2" = "xyes" || test "x$have_enchant" = "xyes"; then
115119

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

0 commit comments

Comments
 (0)