mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +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/trunk@39484 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e42087ae41
commit
c29d13569e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user