[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Abiword and pspell



[sorry about breaking the thread, but I'm not subscribed and don't feel
like writing the proper headers by hand]

Chris wrote:

> I see bug #177447 filed against the abiword-gnome regarding that
> package's dependancy on libpspell4, which is no longer availabel now
> that it's depracated by libaspell.  I couldn't really find any info or
> patches on the abiword dev site regarding this.  It doesn't look like
> abiword 1.1.X is switching over to aspell, either.  Does anyone have a
> patch for this problem or has otherwise been able to get around it?

Aspell still comes with a pspell compatibility wrapper, so applications
using pspell don't need to be rewritten.  Last time I checked the
Abiword source (a couple months ago), some of auto-whatever macros
needed to be modified to work properly with the new pspell.h header.  At
the time, I found that Gentoo had such a patch, but it did not apply
cleanly to Debian's Abiword source.

I would be really surprised in this wasn't fixed in Abiword CVS yet.
But, anyway, if you're interested, here's the patch I found:
--- abi/ac-helpers/abi-spell.m4	2002-06-06 21:44:16.000000000 +0200
+++ abi/ac-helpers/abi-spell.m4.new	2002-10-16 23:37:57.000000000 +0200
@@ -41,12 +41,12 @@
 	if test $abi_spell = psyspell; then
 		_abi_cppflags="$CPPFLAGS"
 		CPPFLAGS="$CPPFLAGS -I$ABI_PSPELL_DIR/include"
-		abi_pspell_libs="-L$ABI_PSPELL_DIR/lib -lpspell -lpspell-modules -lltdl"
+		abi_pspell_libs="-L$ABI_PSPELL_DIR/lib -lstdc++ -laspell -lltdl"
 	else
-		abi_pspell_libs="-lpspell -lpspell-modules -lltdl"
+		abi_pspell_libs="-lstdc++ -laspell -lltdl"
 	fi
-	AC_CHECK_HEADER(pspell/pspell.h,[
-		AC_CHECK_LIB(pspell,new_pspell_config,[
+	AC_CHECK_HEADER(aspell.h,[
+		AC_CHECK_LIB(aspell,new_aspell_config,[
 			SPELL_LIBS="$abi_pspell_libs"
 		],[	AC_MSG_ERROR([* * * pspell not found in system location * * *])
 		],$abi_pspell_libs)
-- 
My secret to happiness... is that I have a heart of a 12-year-old boy.
It's over here in a jar.  Would you like to see it?

Attachment: pgp9jzbwHzaUq.pgp
Description: PGP signature


Reply to: