]> git.lyx.org Git - features.git/commitdiff
Backport r39040 (pkgconfig to configure hunspell).
authorPavel Sanda <sanda@lyx.org>
Tue, 14 Jun 2011 14:37:26 +0000 (14:37 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 14 Jun 2011 14:37:26 +0000 (14:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39041 a592a061-630c-0410-9148-cb99ea01b6c8

config/spell.m4
src/Makefile.am
status.20x

index ec4c75e526bfa2b274a3e650eba5b10ab9f6dc4f..71a0b7bcad37da34f2b6dc6d8c107238c66e6308 100644 (file)
@@ -51,11 +51,7 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
        test "$with_hunspell" = "no" && lyx_use_hunspell=false
 
        if $lyx_use_hunspell ; then
-         AC_CHECK_HEADERS(hunspell/hunspell.hxx,
-               [AC_SEARCH_LIBS(Hunspell_spell,
-                    [hunspell hunspell-1.2],, [lyx_use_hunspell=false])],
-               [lyx_use_hunspell=false])
-       fi
+       PKG_CHECK_MODULES([HUNSPELL], [hunspell], [], [lyx_use_hunspell=false])
        AC_MSG_CHECKING([whether to use hunspell])
        if $lyx_use_hunspell ; then
                AC_MSG_RESULT(yes)
@@ -64,7 +60,8 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
        else
                AC_MSG_RESULT(no)
        fi
-       ])
+    fi
+    ])
 
 
 ### Check if we want spell libraries, prefer new aspell or hunspell
index 02b9b29bb430d70b36e4f62f8d2cb5ff927b0163..6a38664d964794adafb10791f76d88cf36aa78a1 100644 (file)
@@ -4,7 +4,7 @@ include $(top_srcdir)/config/common.am
 
 DISTCLEANFILES += libintl.h
 
-AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES) $(ENCHANT_CFLAGS)
+AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES) $(ENCHANT_CFLAGS) $(HUNSPELL_CFLAGS)
 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
 
 if BUILD_CLIENT_SUBDIR
@@ -16,7 +16,7 @@ SUBDIRS = support frontends . $(CLIENT) tex2lyx
 EXTRA_DIST = pch.h
 
 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) \
-                $(ENCHANT_LIBS) @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
+                $(ENCHANT_LIBS) $(HUNSPELL_LIBS) @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
 
 noinst_LIBRARIES = liblyxcore.a
 bin_PROGRAMS = lyx
index e02da001c31e8d186316136bcfa4c3b8410fb274..4ce6c50a0fd268e6089dc72671be39a396e089d3 100644 (file)
@@ -168,3 +168,5 @@ What's new
 
 * BUILD/INSTALLATION
 
+- Using pkgconfig to configure hunspell (hunspell 1.3 was not correctly
+  recognized).