mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
16cba1f3ab
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6576 a592a061-630c-0410-9148-cb99ea01b6c8
30 lines
712 B
Bash
30 lines
712 B
Bash
# Macro to add for using pspell spellchecker libraries! -*- sh -*-
|
|
# @author@: Jürgen Vigna
|
|
|
|
AC_DEFUN(CHECK_WITH_PSPELL,
|
|
[
|
|
AC_ARG_WITH(pspell,
|
|
AC_HELP_STRING([--with-pspell],[use PSpell libraries]),
|
|
[
|
|
case "$withval" in
|
|
y*) TRY_PSPELL="yes";;
|
|
*) TRY_PSPELL="no";;
|
|
esac
|
|
],
|
|
[
|
|
TRY_PSPELL="yes"
|
|
])
|
|
|
|
if test "$TRY_PSPELL" = "yes" ; then
|
|
AC_CHECK_HEADERS(pspell.h pspell/pspell.h, break, USE_PSPELL=no)
|
|
AC_CHECK_LIB(pspell, main)
|
|
|
|
if test "$TRY_PSPELL" = "yes"; then
|
|
AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
|
|
lyx_flags="$lyx_flags use-pspell"
|
|
fi
|
|
fi
|
|
AC_MSG_CHECKING([whether to use pspell])
|
|
AC_MSG_RESULT($TRY_PSPELL)
|
|
])
|