check for enchant-2

Fixes rest of #10986
This commit is contained in:
Juergen Spitzmueller 2018-03-19 09:03:35 +01:00
parent 593a0956fa
commit 71977769ec

View File

@ -45,7 +45,9 @@ AC_DEFUN([CHECK_WITH_ENCHANT],
test "$with_enchant" = "no" && lyx_use_enchant=false test "$with_enchant" = "no" && lyx_use_enchant=false
if $lyx_use_enchant; then if $lyx_use_enchant; then
PKG_CHECK_MODULES([ENCHANT], [enchant], [], [lyx_use_enchant=false]) PKG_CHECK_MODULES([ENCHANT], [enchant], [],
[PKG_CHECK_MODULES([ENCHANT], [enchant-2], [],
[lyx_use_enchant=false])])
AC_MSG_CHECKING([whether to use enchant]) AC_MSG_CHECKING([whether to use enchant])
if $lyx_use_enchant ; then if $lyx_use_enchant ; then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)