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:
Stephan Witt 2011-08-14 07:17:12 +00:00
parent e42087ae41
commit c29d13569e

View File

@ -51,7 +51,12 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
test "$with_hunspell" = "no" && lyx_use_hunspell=false test "$with_hunspell" = "no" && lyx_use_hunspell=false
if $lyx_use_hunspell ; then 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]) AC_MSG_CHECKING([whether to use hunspell])
if $lyx_use_hunspell ; then if $lyx_use_hunspell ; then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)