Am 08.03.2011 um 18:29 schrieb William Bray:

> I have been testing the beta versions of Lyx 2.0 for some time on my Mac 
> running OS 10.6.6.
> 
> With the latest svn version I get the following error in the build stage 
> regarding Hunspell:
> 
> ********
>  CXX    HunspellChecker.o
> HunspellChecker.cpp:31:33: error: hunspell/hunspell.hxx: No such file or 
> directory
> ...
> make[4]: *** [HunspellChecker.o] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> ******************
> 
> I have not seen this listed as a bug?

You are the first one without hunspell header but with hunspell library... :)

> My config line is
> ./configure --with-version-suffix=-2.0 --with-libiconv-prefix=/usr 
> --with-x=no --disable-stdlib-debug --prefix=/Applications/Lyx-2.app 
> --with-qt4-dir=/usr/local/qt4 --enable-build-type=release
> 
> As a work around, if I add the option --with-hunspell=no to the config line, 
> then the prerelease builds fine.

The attached patch fixes this. JMarc, is this the right thing?

Stephan

Index: config/spell.m4
===================================================================
--- config/spell.m4     (Revision 37877)
+++ config/spell.m4     (Arbeitskopie)
@@ -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

Reply via email to