Mercurial > ~mikael > mcabber > hg
comparison mcabber/configure.ac @ 1590:8d1bcc83ae32
Add support for spellchecking with Enchant (caolan)
Patch from the issue tracker:
http://bitbucket.org/McKael/mcabber-crew/issue/36/patch-to-spell-checking-using-enchant
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 04 Oct 2009 19:33:38 +0200 |
parents | 590ade2780bd |
children | 06fdfff29175 |
comparison
equal
deleted
inserted
replaced
1589:23c08d4f1d1e | 1590:8d1bcc83ae32 |
---|---|
202 LIBS="$LIBS $LIBGNUTLS_LIBS" | 202 LIBS="$LIBS $LIBGNUTLS_LIBS" |
203 fi | 203 fi |
204 fi | 204 fi |
205 fi | 205 fi |
206 | 206 |
207 # Check for Enchant stuff | |
208 AC_ARG_ENABLE(enchant, [ --enable-enchant enable enchant support], | |
209 enable_enchant=$enableval, enchant="") | |
207 # Check for Aspell stuff | 210 # Check for Aspell stuff |
208 AC_ARG_ENABLE(aspell, [ --enable-aspell enable aspell support], | 211 AC_ARG_ENABLE(aspell, [ --enable-aspell enable aspell support], |
209 enable_aspell=$enableval, aspell="") | 212 enable_aspell=$enableval, aspell="") |
210 if test "x$enable_aspell" = "xyes"; then | 213 |
214 if test "x$enable_enchant" = "xyes"; then | |
215 PKG_CHECK_MODULES(ENCHANT, [enchant], | |
216 AC_DEFINE(WITH_ENCHANT, 1, [define if you want enchant support]) | |
217 ) | |
218 else | |
219 if test "x$enable_aspell" = "xyes"; then | |
211 AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ]) | 220 AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ]) |
212 if test "x$have_aspell_includes" = "xyes"; then | 221 if test "x$have_aspell_includes" = "xyes"; then |
213 AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ]) | 222 AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ]) |
214 if test "x$have_aspell_libs" = "xyes"; then | 223 if test "x$have_aspell_libs" = "xyes"; then |
215 AC_DEFINE([WITH_ASPELL], 1, [define if you want aspell support]) | 224 AC_DEFINE([WITH_ASPELL], 1, [define if you want aspell support]) |
218 enable_aspell=no | 227 enable_aspell=no |
219 fi | 228 fi |
220 else | 229 else |
221 enable_aspell=no | 230 enable_aspell=no |
222 fi | 231 fi |
232 fi | |
223 fi | 233 fi |
224 | 234 |
225 AC_DEFINE([BUILD_JABBER], 1, [build with jabber support]) | 235 AC_DEFINE([BUILD_JABBER], 1, [build with jabber support]) |
226 | 236 |
227 # Export $datadir to the source tree. | 237 # Export $datadir to the source tree. |