2 dnl Internal editor support.
4 AC_DEFUN([MC_WITH_EDIT], [
6 AC_ARG_WITH([edit], AS_HELP_STRING([--with-edit], [Enable internal editor @<:@yes@:>@]))
8 if test x$with_edit != xno; then
9 AC_DEFINE(USE_INTERNAL_EDIT, 1, [Define to enable internal editor])
11 AC_MSG_NOTICE([using internal editor])
18 AC_ARG_ENABLE([aspell],
19 AS_HELP_STRING([--enable-aspell], [Enable aspell support for internal editor @<:@no@:>@]),
21 if test "x$enableval" = xno; then
30 if test x$with_edit != xno -a x$enable_aspell != xno; then
31 AC_CHECK_HEADERS([aspell.h], [], [
32 AC_ERROR([Could not find aspell development headers])
35 if test x"$g_module_supported" != x; then
36 AC_DEFINE(HAVE_ASPELL, 1, [Define to enable aspell support])
37 edit_msg="yes with aspell support"
38 AC_MSG_NOTICE([using aspell for internal editor])
41 AC_MSG_NOTICE([aspell support is disabled because gmodule support is not available])