-# Macro to add for using pspell spellchecker libraries!
+# Macro to add for using pspell spellchecker libraries! -*- sh -*-
# @author@: Jürgen Vigna
AC_DEFUN(CHECK_WITH_PSPELL,
pspell_lib_found="Setting to $pspell_use_lib"
else
pspell_libs="/usr/lib /usr/lib/pspell /usr/local/lib /usr/local/lib/pspell"
- AC_FIND_FILE(libpspell.a,$pspell_libs,pspell_use_lib)
+ AC_FIND_FILE(libpspell.la libpspell.so libpspell.a,$pspell_libs,pspell_use_lib)
pspell_lib_found="yes"
fi
if test "$pspell_use_include" = "NO" || \
- test "$pspell_use_include" = "NO"; then
+ test "$pspell_use_lib" = "NO"; then
if test "$USE_PSPELL" = "yes"; then
USE_PSPELL="not found"
fi
fi
if test "$USE_PSPELL" = "yes"; then
- AC_DEFINE(USE_PSPELL)
+ AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
PSPELL_INCLUDES="-I$pspell_use_include"
PSPELL_LIBS="-L$pspell_use_lib -lpspell"
USE_PSPELL="yes ($pspell_use_include $pspell_use_lib)"