]> git.lyx.org Git - features.git/commitdiff
check for enchant-2
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 19 Mar 2018 08:03:35 +0000 (09:03 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 19 Mar 2018 16:34:06 +0000 (17:34 +0100)
Fixes rest of #10986

(cherry picked from commit 71977769ec5168eda6f49697b570bbd1dd6991d8)

config/spell.m4

index f494da8f2f5c8aa812ffbd2095b8005569dcdc1b..5bf36fc8eab27742919db9d010953013f801a1e8 100644 (file)
@@ -45,7 +45,9 @@ AC_DEFUN([CHECK_WITH_ENCHANT],
        test "$with_enchant" = "no" && lyx_use_enchant=false
 
        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])
                if $lyx_use_enchant ; then
                    AC_MSG_RESULT(yes)