--- configure.ac.old 2007-02-02 14:15:53.000000000 +0100 +++ configure.ac 2007-02-02 14:02:17.000000000 +0100 @@ -330,10 +330,15 @@ fi AM_CONDITIONAL(INKJAR, test "$with_ij" = "yes") -ink_spell_pkg= -if pkg-config --exists gtkspell-2.0; then - ink_spell_pkg=gtkspell-2.0 - AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget]) +AC_ARG_WITH(gtkspell, + AC_HELP_STRING([--without-gtkspell], [disable gtkspell]),[with_gtksp=$withval], [with_gtksp=yes]) + +if test "x$with_gtksp" = "xyes"; then + ink_spell_pkg= + if pkg-config --exists gtkspell-2.0; then + ink_spell_pkg=gtkspell-2.0 + AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget]) + fi fi dnl ******************************