1 # Macro to add for using pspell spellchecker libraries! -*- sh -*-
2 # @author@: Jürgen Vigna
4 AC_DEFUN([CHECK_WITH_PSPELL],
7 AC_HELP_STRING([--with-pspell],[use PSpell libraries]),
10 y*) USING_PSPELL="yes";;
11 *) USING_PSPELL="no";;
18 if test "$USING_PSPELL" = "yes" ; then
19 AC_CHECK_HEADERS(pspell/pspell.h, USING_PSPELL="yes", USING_PSPELL="no")
20 AC_CHECK_LIB(pspell, main, LIBS="-lpspell $LIBS"; USING_PSPELL="yes", USING_PSPELL="no")
22 if test "$USING_PSPELL" = "yes"; then
23 AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
24 lyx_flags="$lyx_flags use-pspell"
27 AC_MSG_CHECKING([whether to use pspell])
28 AC_MSG_RESULT($USING_PSPELL)