]> git.lyx.org Git - lyx.git/blobdiff - config/spell.m4
Text3.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5166, patch by Vincent
[lyx.git] / config / spell.m4
index 6f8fe4000032e7c0e38d1c1bceea041b2b11f335..f60cdbfe4e134074666a631a672b676b9239e332 100644 (file)
@@ -7,8 +7,8 @@ AC_DEFUN([CHECK_WITH_ASPELL],
     test "$with_aspell" = "no" && lyx_use_aspell=false
 
     if $lyx_use_aspell ; then
-       AC_CHECK_HEADERS(aspell.h aspell/aspell.h, 
-           [lyx_use_aspell=true; break;], 
+       AC_CHECK_HEADERS(aspell.h aspell/aspell.h,
+           [lyx_use_aspell=true; break;],
            [lyx_use_aspell=false])
        AC_CHECK_LIB(aspell, new_aspell_config, LIBS="-laspell $LIBS", lyx_use_aspell=false)
 
@@ -65,12 +65,12 @@ AC_DEFUN([LYX_CHECK_SPELL_ENGINES],
     dnl Do this independent of the existence of the aspell, pspell libraries.
     lyx_use_ispell=true
     AC_LANG_PUSH(C)
-    AC_CHECK_FUNCS(select dup2,, [lyx_use_ispell=false])
+    AC_CHECK_FUNCS(fork,, [lyx_use_ispell=false])
     AC_LANG_POP(C)
     AC_MSG_CHECKING([whether to use ispell])
     if $lyx_use_ispell ; then
       AC_MSG_RESULT(yes)
-      AC_DEFINE(USE_ISPELL, 1, [Define as 1 to use an external ispell process for spell-checking])
+      AC_DEFINE(USE_ISPELL, 1, [Define as 1 to use an external ispell process to check spelling])
       lyx_flags="$lyx_flags use-ispell"
     else
       AC_MSG_RESULT(no)