mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
restore old hunspell library detection code as fallback when pkg-config is not available - for Mac OS X
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2961d29cd3
commit
be43302c90
@ -51,7 +51,12 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
|
||||
test "$with_hunspell" = "no" && lyx_use_hunspell=false
|
||||
|
||||
if $lyx_use_hunspell ; then
|
||||
PKG_CHECK_MODULES([HUNSPELL], [hunspell], [], [lyx_use_hunspell=false])
|
||||
PKG_CHECK_MODULES([HUNSPELL], [hunspell], [], [
|
||||
AC_CHECK_HEADERS(hunspell/hunspell.hxx,
|
||||
[lyx_use_hunspell=true; break;],
|
||||
[lyx_use_hunspell=false])
|
||||
AC_CHECK_LIB(hunspell, main, LIBS="-lhunspell $LIBS", lyx_use_hunspell=false)
|
||||
])
|
||||
AC_MSG_CHECKING([whether to use hunspell])
|
||||
if $lyx_use_hunspell ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
|
@ -310,5 +310,8 @@ What's new
|
||||
- Using pkgconfig to configure hunspell (hunspell 1.3 was not correctly
|
||||
recognized).
|
||||
|
||||
- Using explicit header and library detection as fallback to configure
|
||||
hunspell in case pkgconfig is missing in build environment.
|
||||
|
||||
- Fixed build failure on GNU/Hurd, which doesn't define PATH_MAX
|
||||
(bug 7467).
|
||||
|
Loading…
Reference in New Issue
Block a user