]> git.lyx.org Git - lyx.git/blob - config/pspell.m4
try some pspell stuff
[lyx.git] / config / pspell.m4
1 # Macro to add for using pspell spellchecker libraries!     -*- sh -*-
2 # @author@: Jürgen Vigna
3
4 AC_DEFUN(CHECK_WITH_PSPELL,
5 [
6     AC_MSG_CHECKING([for pspell support])
7     AC_ARG_WITH(pspell,
8         AC_HELP_STRING([--with-pspell],[use PSpell libraries]),
9         [
10             case "$withval" in
11                 y*) USE_PSPELL="yes";;
12                 *) USE_PSPELL="no";;
13             esac
14             ],
15         [
16             USE_PSPELL="yes"
17             ])
18
19     if test "$USE_PSPELL" = "yes" ; then
20         AC_CHECK_HEADERS(pspell/pspell.h, break, USE_PSPELL=no)
21         AC_CHECK_LIB(pspell, new_pspell_config)
22
23         if test "$USE_PSPELL" = "yes"; then
24             AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
25             lyx_flags="$lyx_flags use-pspell"
26         fi
27     fi
28     AC_MSG_RESULT($USE_PSPELL)
29     ])