commit 607541019d32e2787950d931b42f9257db7fd0b0
Author: unknown <Steve@.(none)>
Date:   Tue Oct 4 22:24:48 2011 +0100

    Add support for enchant spelling libs on Win32

diff --git a/configure.in b/configure.in
index 6a29f68..4e6d3ee 100644
--- a/configure.in
+++ b/configure.in
@@ -49,6 +49,7 @@ GMIME_REQUIRED=2.4.0
 GTK_REQUIRED=2.16.0
 GTK3_REQUIRED=3.0.0
 GTKSPELL_REQUIRED=2.0.7
+ENCHANT_REQUIRED=1.5.0
 AC_SUBST(GLIB_REQUIRED)
 AC_SUBST(GMIME_REQUIRED)
 AC_SUBST(GTK_REQUIRED)
@@ -94,10 +95,14 @@ gtkspell_msg=no
 AC_ARG_WITH(gtkspell, AC_HELP_STRING([--with-gtkspell], [Enable gtkspell support]), [want_gtkspell=$withval], [want_gtkspell=yes])
 if test "x$want_gtkspell" = "xyes" ; then
 	PKG_CHECK_MODULES([GTKSPELL], [gtkspell-2.0 >= $GTKSPELL_REQUIRED],
+		  [PKG_CHECK_MODULES([ENCHANT], [enchant >= $ENCHANT_REQUIRED],
 	                  [gtkspell_msg=yes
-	                  AC_DEFINE(HAVE_GTKSPELL,[1],[Spellcheck Library])],
-	                  [gtkspell_msg=no
-	                  AC_MSG_RESULT(no)])
+	                  AC_DEFINE(HAVE_GTKSPELL,[1],[Spellcheck Library])
+			  LIBS="$LIBS -lenchant"],
+			  [gtkspell_msg=missing-enchant
+	                  AC_MSG_RESULT(no)])],
+		  [gtkspell_msg=no
+		  AC_MSG_RESULT(no)])
 fi
 
 dnl Check to see if strftime supports the use of %l and %k
