Author: switt
Date: Wed Mar 9 16:40:03 2011
New Revision: 37887
URL: http://www.lyx.org/trac/changeset/37887
Log:
do not check for hunspell libraries if header is not present
Modified:
lyx-devel/trunk/config/spell.m4
Modified: lyx-devel/trunk/config/spell.m4
==============================================================================
--- lyx-devel/trunk/config/spell.m4 Wed Mar 9 15:15:34 2011 (r37886)
+++ lyx-devel/trunk/config/spell.m4 Wed Mar 9 16:40:03 2011 (r37887)
@@ -55,9 +55,11 @@
[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