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*) TRY_PSPELL="yes";;
18 if test "$TRY_PSPELL" = "yes" ; then
19 AC_CHECK_HEADERS(pspell.h pspell/pspell.h, break, USE_PSPELL=no)
20 AC_CHECK_LIB(pspell, main)
22 if test "$TRY_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($TRY_PSPELL)