1 # Macro to add for using aspell spellchecker libraries! -*- sh -*-
3 # Only checks for "new" aspell, > 0.50
5 AC_DEFUN([CHECK_WITH_ASPELL],
8 AC_HELP_STRING([--with-aspell],[use ASpell libraries]),
11 y*) USING_ASPELL="yes";;
12 *) USING_ASPELL="no";;
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")
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"
28 AC_MSG_CHECKING([whether to use aspell])
29 AC_MSG_RESULT($USING_ASPELL)