]> git.lyx.org Git - lyx.git/blob - config/aspell.m4
Fix handling of aligment; rearrange tabular-features menu stuff
[lyx.git] / config / aspell.m4
1 # Macro to add for using aspell spellchecker libraries!     -*- sh -*-
2
3 # Only checks for "new" aspell, > 0.50
4
5 AC_DEFUN([CHECK_WITH_ASPELL],
6 [
7     AC_ARG_WITH(aspell,
8         AC_HELP_STRING([--with-aspell],[use ASpell libraries]),
9         [
10             case "$withval" in
11                 y*) USING_ASPELL="yes";;
12                 *) USING_ASPELL="no";;
13             esac
14             ],
15         [
16             USING_ASPELL="yes"
17             ])
18
19     if test "$USING_ASPELL" = "yes" ; then
20         AC_CHECK_HEADERS(aspell.h aspell/aspell.h, USING_ASPELL="yes", USING_ASPELL="no")
21         AC_CHECK_LIB(aspell, new_aspell_config, LIBS="-laspell $LIBS"; USING_ASPELL="yes", USING_ASPELL="no")
22
23         if test "$USING_ASPELL" = "yes"; then
24             AC_DEFINE(USE_ASPELL, 1, [Define as 1 to use the aspell library])
25             lyx_flags="$lyx_flags use-aspell"
26         fi
27     fi
28     AC_MSG_CHECKING([whether to use aspell])
29     AC_MSG_RESULT($USING_ASPELL)
30     ])