]> granicus.if.org Git - neomutt/commitdiff
Revert "enabling notmuch enables sidebar"
authorRichard Russon <rich@flatcap.org>
Sun, 1 May 2016 15:35:55 +0000 (16:35 +0100)
committerRichard Russon <rich@flatcap.org>
Sun, 1 May 2016 15:35:55 +0000 (16:35 +0100)
Not the right solution.

configure.ac

index 612a3f63b1dac43b16ccdcee145b71619146d976..79473ed8cff550cd281d6c1e89f96e83bab4dd40 100644 (file)
@@ -175,6 +175,15 @@ 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,,
@@ -183,7 +192,6 @@ 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(
@@ -200,16 +208,6 @@ 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