   AC_LANG_SAVE
   AC_LANG_C
   dnl Check for aspell library
   AC_MSG_CHECKING([for kspell2/broker.h (kdelibs>3.2)])
   AC_FIND_FILE(kspell2/broker.h, $kde_includes, ac_kspell2_includes)
   if test -n "$ac_kspell2_includes" && test -r "$ac_kspell2_includes/kspell2/broker.h"; then
           dnl the header and the lib exist -> ok
           dnl this is for config.h
           AC_DEFINE(HAVE_LIBKSPELL2, 1, [If we are going to use libkspell2 for spell-checking])
           LIBKSPELL2="-lkspell2"
           AC_MSG_RESULT([found in $ac_kspell2_includes])
   else
           LIBKSPELL2=""
           AC_MSG_RESULT([not found -- spell-checking will be disabled])
   fi
   AC_SUBST(LIBKSPELL2)
   AC_LANG_RESTORE
