]> git.lyx.org Git - lyx.git/blobdiff - config/pspell.m4
fix writing of tabulars; output the real lyx version number at the top of generated...
[lyx.git] / config / pspell.m4
index 0b8b420ff3495e2f13c9d87a8e435af1e30ebe41..6afd1a91b10efe099d21d8504df2d2274d447a60 100644 (file)
@@ -7,23 +7,23 @@ AC_DEFUN(CHECK_WITH_PSPELL,
        AC_HELP_STRING([--with-pspell],[use PSpell libraries]),
        [
            case "$withval" in
-               y*) TRY_PSPELL="yes";;
-               *) TRY_PSPELL="no";;
+               y*) USING_PSPELL="yes";;
+               *) USING_PSPELL="no";;
            esac
            ],
        [
-           TRY_PSPELL="yes"
+           USING_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 "$USING_PSPELL" = "yes" ; then
+       AC_CHECK_HEADERS(pspell/pspell.h, USING_PSPELL="yes", USING_PSPELL="no")
+       AC_CHECK_LIB(pspell, main, LIBS="-lpspell $LIBS"; USING_PSPELL="yes", USING_PSPELL="no")
 
-       if test "$TRY_PSPELL" = "yes"; then
+       if test "$USING_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)
+    AC_MSG_RESULT($USING_PSPELL)
     ])