Hspell plugin for KSpell2 seems fine now

Mashrab Kuvatov kmashrab at sat.physik.uni-bremen.de
Sun May 1 14:28:09 BST 2005


Saturday 30 April 2005 23:00, Zack Rusin wrote:
> On Saturday 30 April 2005 18:48, Mashrab Kuvatov wrote:
> > OK I'll try. First of all, do you want me to add this plugin into
> > KSpell2?
> 
> Yes, of course. Once you have a working configure check you can just go 
> ahead and add it.

I did the following changes. It works for me. Is it OK?

kdelibs/kspell2/plugins/configure.in.bot:

if test -z "$LIBHSPELL"; then
echo ""
echo "The development package of Hspell is not installed, I couldn't find 
hspell.h."
echo "Spell-checking Hebrew with libhspell will not be available."
echo "If you need it, install hspell >= 0.9 from sources"
echo "see http://www.ivrix.org.il/projects/spell-checker/"
echo "or from packages your distribution provides."
echo ""
fi

kdelibs/kspell2/plugins/configure.in.in:

AM_CONDITIONAL(include_aspell_plugin, test -n "$ac_cv_header_aspell_h" -a -n 
"$LIBASPELL")

AC_ARG_WITH(hspell,AC_HELP_STRING([--with-hspell],[Enable hspell support 
[default=check]]),[hspell_test="$withval"],[hspell_test="yes"])

if test "x$hspell_test" = "xyes" ; then
       AC_LANG_SAVE
       AC_LANG_C
       dnl Check for hspell library
       KDE_CHECK_LIB(hspell, hspell_check_word, [LIBHSPELL="-lhspell"],[],-lz)
       KDE_CHECK_HEADER(hspell.h)
       if test "$ac_cv_header_hspell_h" != "yes"; then
               unset LIBHSPELL
       fi
       AC_LANG_RESTORE
fi

AM_CONDITIONAL(include_hspell_plugin, test -n "$ac_cv_header_hspell_h" -a -n 
"$LIBHSPELL")

kdelibs/kspell2/plugins/Makefile.am:

if include_hspell_plugin
LIBHSPELLPLUGIN = hspell
endif

SUBDIRS = $(LIBASPELLPLUGIN) $(LIBHSPELLPLUGIN) ispell

Cheers,
Mashrab.
-- 
Mashrab Kuvatov
Ph.D student
University of Bremen, IUP
Home-page: www.sat.uni-bremen.de/members/mashrab
PGP key: www.uni-bremen.de/~kmashrab/kmashrab.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050501/ff19f57d/attachment.sig>


More information about the kde-core-devel mailing list