AC_ARG_ENABLE(nntp, [ --enable-nntp Enable NNTP support],
[ if test x$enableval = xyes ; then
AC_DEFINE(USE_NNTP)
- MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
+ LIBNNTP="-Lnntp -lnntp"
+ LIBNNTPDEPS="\$(top_srcdir)/nntp/nntp.h nntp/libnntp.a"
+ need_nntp="yes"
need_socket="yes"
fi
])
+AM_CONDITIONAL(BUILD_NNTP, test x$need_nntp = xyes)
dnl -- end socket dependencies --
AC_SUBST(LIBIMAPDEPS)
AC_SUBST(LIBPOP)
AC_SUBST(LIBPOPDEPS)
+AC_SUBST(LIBNNTP)
+AC_SUBST(LIBNNTPDEPS)
dnl -- iconv/gettext --
AC_OUTPUT(Makefile intl/Makefile m4/Makefile
po/Makefile.in doc/Makefile contrib/Makefile
muttbug.sh
+ lib/Makefile
imap/Makefile
pop/Makefile
+ nntp/Makefile
Muttngrc.head
doc/instdoc.sh)