# Test the .tar file by building everything
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-debug \
- --enable-gpgme --enable-imap --enable-nntp --enable-notmuch \
+ --enable-gpgme --enable-nntp --enable-notmuch \
--enable-pop --enable-smtp --with-bdb --with-gdbm \
--with-gnutls --with-gss --with-kyotocabinet --with-lmdb --with-qdbm \
--with-sasl --with-tokyocabinet
-SUBDIRS = m4 contrib hcache
+SUBDIRS = m4 contrib hcache imap
if BUILD_DOC
SUBDIRS += doc
SUBDIRS += po
endif
-if BUILD_IMAP
-SUBDIRS += imap
-endif
-
bin_SCRIPTS = $(SMIMEAUX_TARGET)
DOTLOCK_GROUP='mail'
nodist_mutt_SOURCES = $(BUILT_SOURCES)
+LIBIMAP = -Limap -limap
+LIBIMAPDEPS = $(top_srcdir)/imap/imap.h imap/libimap.a
+
mutt_LDADD = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAP) $(MUTTLIBS) \
$(INTLLIBS) $(LIBICONV) $(GPGME_LIBS) $(HCACHE_LIBS)
use_smime="yes"
use_notmuch="yes"
use_pop="yes"
- use_imap="yes"
use_nntp="yes"
use_smtp="yes"
use_lua="yes"
use_smime="no"
use_notmuch="no"
use_pop="no"
- use_imap="no"
use_nntp="no"
use_smtp="no"
use_lua="no"
AS_HELP_STRING([--enable-pop], [Enable POP3 support]),
[use_pop=$enableval])
-AC_ARG_ENABLE(imap,
- AS_HELP_STRING([--enable-imap], [Enable IMAP support]),
- [use_imap=$enableval])
-
AC_ARG_ENABLE(nntp,
AC_HELP_STRING([--enable-nntp], [Enable NNTP support]),
[use_nntp=$enableval])
])
AC_DEFINE(USE_COMPRESSED, 1, [Define to enable compressed folders support.])
+AC_DEFINE(USE_IMAP, 1, [Define if you want support for the IMAP protocol.])
+need_imap="yes"
+need_socket="yes"
+need_md5="yes"
AC_DEFINE(USE_SIDEBAR, 1, [Define if you want support for the sidebar.])
dnl --enable-lua
need_md5="yes"
])
-AS_IF([test x$use_imap = "xyes"], [
- AC_DEFINE(USE_IMAP, 1, [Define if you want support for the IMAP protocol.])
- LIBIMAP="-Limap -limap"
- LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
- need_imap="yes"
- need_socket="yes"
- need_md5="yes"
-])
-AM_CONDITIONAL(BUILD_IMAP, test x$need_imap = xyes)
-
AS_IF([test x$use_nntp = "xyes"], [
AC_DEFINE(USE_NNTP, 1, [Define if you want support for the NNTP protocol.])
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
AC_SUBST(MUTT_MD5)
AC_SUBST(MUTTLIBS)
AC_SUBST(MUTT_LIB_OBJECTS)
-AC_SUBST(LIBIMAP)
-AC_SUBST(LIBIMAPDEPS)
AC_SUBST(HCACHE_LIBS)
dnl -- iconv/gettext --
Lua: $use_lua
POP3: $use_pop
- IMAP: $use_imap
NNTP: $use_nntp
SMTP: $use_smtp
])