$NetBSD: patch-cc,v 1.3 2003/01/20 10:04:26 skrll Exp $

--- kspell/ksconfig.cpp.orig	Wed Jan 15 12:18:30 2003
+++ kspell/ksconfig.cpp
@@ -360,6 +360,8 @@ void KSpellConfig::getAvailDictsIspell (
   // dictionary path
   QFileInfo dir ("/usr/lib/ispell");
   if (!dir.exists() || !dir.isDir())
+    dir.setFile ("@LOCALBASE@/lib");
+  if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/local/lib/ispell");
   if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/local/share/ispell");
@@ -422,6 +424,8 @@ void KSpellConfig::getAvailDictsAspell (
   // dictionary path
   // FIXME: use "aspell dump config" to find out the dict-dir
   QFileInfo dir ("/usr/lib/aspell");
+  if (!dir.exists() || !dir.isDir())
+    dir.setFile ("@LOCALBASE@/lib");
   if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/local/lib/aspell");
   if (!dir.exists() || !dir.isDir())
