mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
43f489b357
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6435 a592a061-630c-0410-9148-cb99ea01b6c8
30 lines
713 B
Bash
30 lines
713 B
Bash
# Macro to add for using pspell spellchecker libraries! -*- sh -*-
|
|
# @author@: Jürgen Vigna
|
|
|
|
AC_DEFUN(CHECK_WITH_PSPELL,
|
|
[
|
|
AC_MSG_CHECKING([for pspell support])
|
|
AC_ARG_WITH(pspell,
|
|
AC_HELP_STRING([--with-pspell],[use PSpell libraries]),
|
|
[
|
|
case "$withval" in
|
|
y*) USE_PSPELL="yes";;
|
|
*) USE_PSPELL="no";;
|
|
esac
|
|
],
|
|
[
|
|
USE_PSPELL="yes"
|
|
])
|
|
|
|
if test "$USE_PSPELL" = "yes" ; then
|
|
AC_CHECK_HEADERS(pspell/pspell.h, break, USE_PSPELL=no)
|
|
AC_CHECK_LIB(pspell, new_pspell_config)
|
|
|
|
if test "$USE_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_RESULT($USE_PSPELL)
|
|
])
|