From 0a23e8c73ab4d2f4516b5cb9a068c09631e2edb4 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Mon, 4 Apr 2016 09:00:00 +0100 Subject: [PATCH] enabling notmuch enables sidebar Notmuch depends on Sidebar. "configure --enable-notmuch" now forcibly enables Sidebar. Addresses: https://github.com/neomutt/neomutt/issues/12 --- configure.ac | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index b54c1ac9e..c6421d91a 100644 --- a/configure.ac +++ b/configure.ac @@ -175,15 +175,6 @@ if test x$have_smime != xno ; then SMIMEAUX_TARGET="smime_keys" fi -AC_ARG_ENABLE(sidebar, AC_HELP_STRING([--enable-sidebar], [Enable Sidebar support]), -[ if test x$enableval = xyes ; then - AC_DEFINE(USE_SIDEBAR,1,[ Define if you want support for the sidebar. ]) - OPS="$OPS \$(srcdir)/OPS.SIDEBAR" - need_sidebar="yes" - fi -]) -AM_CONDITIONAL(BUILD_SIDEBAR, test x$need_sidebar = xyes) - AC_ARG_ENABLE(notmuch, AC_HELP_STRING([--enable-notmuch], [Enable NOTMUCH support]), [ if test x$enableval = xyes ; then AC_CHECK_LIB(notmuch, notmuch_database_open,, @@ -192,6 +183,7 @@ AC_ARG_ENABLE(notmuch, AC_HELP_STRING([--enable-notmuch], [Enable NOTMUCH suppor NOTMUCH_LIBS="-lnotmuch" OPS="$OPS \$(srcdir)/OPS.NOTMUCH" need_notmuch="yes" + need_sidebar="yes" AC_MSG_CHECKING([for notmuch api version 3]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( @@ -208,6 +200,16 @@ AC_ARG_ENABLE(notmuch, AC_HELP_STRING([--enable-notmuch], [Enable NOTMUCH suppor ]) AM_CONDITIONAL(BUILD_NOTMUCH, test x$need_notmuch = xyes) +AC_ARG_ENABLE(sidebar, AC_HELP_STRING([--enable-sidebar], [Enable Sidebar support]), +[ if test x$enableval = xyes ; then + need_sidebar="yes" + fi +]) +AS_IF([test "x$need_sidebar" = "xyes"], [ + AC_DEFINE(USE_SIDEBAR,1,[ Define if you want support for the sidebar. ]) + OPS="$OPS \$(srcdir)/OPS.SIDEBAR" +]) +AM_CONDITIONAL(BUILD_SIDEBAR, test x$need_sidebar = xyes) AC_ARG_WITH(mixmaster, AS_HELP_STRING([--with-mixmaster@<:@=PATH@:>@],[Include Mixmaster support]), [if test "$withval" != no -- 2.50.1