From: Stephan Witt Date: Wed, 9 Mar 2011 15:40:03 +0000 (+0000) Subject: do not check for hunspell libraries if header is not present X-Git-Tag: 2.0.0~561 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=45e4c6b94b0a5cf47f9aeeb43062f86dece1be83;p=features.git do not check for hunspell libraries if header is not present git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37887 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/config/spell.m4 b/config/spell.m4 index 0fc7b3efbe..d8b643cc84 100644 --- a/config/spell.m4 +++ b/config/spell.m4 @@ -55,9 +55,11 @@ AC_DEFUN([CHECK_WITH_HUNSPELL], [lyx_use_hunspell=true; break;], [lyx_use_hunspell=false]) - AC_CHECK_LIB(hunspell, main, LIBS="-lhunspell $LIBS", lyx_use_hunspell=false) - if test x$lyx_use_hunspell = xfalse ; then - AC_CHECK_LIB(hunspell-1.2, main, [LIBS="-lhunspell-1.2 $LIBS" lyx_use_hunspell=true], lyx_use_hunspell=false) + if test x$lyx_use_hunspell = xtrue ; then + AC_CHECK_LIB(hunspell, main, LIBS="-lhunspell $LIBS", lyx_use_hunspell=false) + if test x$lyx_use_hunspell = xfalse ; then + AC_CHECK_LIB(hunspell-1.2, main, [LIBS="-lhunspell-1.2 $LIBS" lyx_use_hunspell=true], lyx_use_hunspell=false) + fi fi AC_MSG_CHECKING([whether to use hunspell]) if $lyx_use_hunspell ; then