X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=configure.ac;h=bbd30fd2cc92036450ff6210cc069113a7b02b08;hp=accf02961ce6b8ab437c8123e165861ab1373ee8;hb=c78e429c2949356b893b6c7d5c692c2a4ccaa447;hpb=6d541232b1c2c670ff9417b9797e16ca56439318 diff --git a/configure.ac b/configure.ac index accf0296..bbd30fd2 100644 --- a/configure.ac +++ b/configure.ac @@ -393,6 +393,31 @@ AM_CONDITIONAL(HAVE_RAW, [test "x$HAVE_RAW" = xyes]) AC_SUBST(RAW_CFLAGS) AC_SUBST(RAW_LIBS) +# libgspell support +# ---------------------------------------------------------------------- + +AC_ARG_ENABLE([spell], + AC_HELP_STRING([--disable-spell], [disable libgspell support]), + [libgspell=$enableval], [libgspell=auto]) + +if test "x${libgspell}" != "xno" -a "x${gtk3}" != "xno"; then + PKG_CHECK_MODULES(SPELL, [gspell-1 >= 1.6], + [ + HAVE_SPELL=yes + AC_DEFINE(HAVE_SPELL, 1, [define to enable libgspell support]) + ], + [ + HAVE_SPELL=no + AC_MSG_WARN([$SPELL_PKG_ERRORS]) + ]) +else + HAVE_SPELL=disabled +fi + +AM_CONDITIONAL(HAVE_SPELL, [test "x$HAVE_SPELL" = xyes]) +AC_SUBST(SPELL_CFLAGS) +AC_SUBST(SPELL_LIBS) + # libffmpegthumbnailer support # ---------------------------------------------------------------------- @@ -887,6 +912,7 @@ Support: LibRaw: $HAVE_RAW Libjxl: $HAVE_JPEGXL Libarchive: $HAVE_ARCHIVE + Spelling $HAVE_SPELL Documentation: Doxygen: $DX_DOXYGEN