cleanups.
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index 8da5c92..5e589af 100644 (file)
--- a/main.c
+++ b/main.c
@@ -32,6 +32,7 @@
 #include "sort.h"
 #include "keymap.h"
 #include "mutt_idna.h"
+#include "mutt_sasl.h"
 
 #ifdef HAVE_GETOPT_H
 #include <getopt.h>
@@ -57,21 +58,12 @@ extern int optind;
 #include <depot.h>
 #elif defined(HAVE_GDBM)
 #include <gdbm.h>
-#elif defined(HAVE_DB4)
-#include <db.h>
 #endif
 #endif
 
-#ifdef USE_GNUTLS
 #include <gnutls/gnutls.h>
-#endif
-
 #include <gpgme.h>
 
-#ifdef USE_SSL
-#include <openssl/opensslv.h>
-#endif
-
 static const char *Notice = N_("\
 Copyright (C) 1996-2002 Michael R. Elkins and others.\n\
 Copyright (C) 2005 The Mutt-ng Team\n\
@@ -183,20 +175,10 @@ static void show_version (void)
   printf ("  qdbm %s\n", dpversion);
 #elif defined(HAVE_GDBM)
   printf ("  gdbm %s\n", gdbm_version);
-#elif defined(HAVE_DB4)
-  printf ("  DB4 %d.%d.%d\n", DB_VERSION_MAJOR, DB_VERSION_MINOR,
-          DB_VERSION_PATCH);
 #endif
 #endif
 
-#ifdef USE_GNUTLS
   printf ("  gnutls %s\n", LIBGNUTLS_VERSION);
-#endif
-
-#ifdef USE_SSL
-  printf ("  %s\n",OPENSSL_VERSION_TEXT);
-#endif
-
   printf ("  gpgme %s\n", GPGME_VERSION);
   puts (_("Compile Options:"));
 
@@ -233,21 +215,6 @@ static void show_version (void)
 #else
          "-USE_NNTP  "
 #endif
-#ifdef USE_GSS
-         "+USE_GSS  "
-#else
-         "-USE_GSS  "
-#endif
-#ifdef USE_SSL
-         "+USE_SSL  "
-#else
-         "-USE_SSL  "
-#endif
-#ifdef USE_GNUTLS
-         "+USE_GNUTLS  "
-#else
-         "-USE_GNUTLS  "
-#endif
 #ifdef USE_LIBESMTP
          "+USE_LIBESMTP  "
 #else
@@ -331,11 +298,6 @@ static void show_version (void)
          "+HAVE_GETSID  "
 #else
          "-HAVE_GETSID  "
-#endif
-#ifdef HAVE_GETADDRINFO
-         "+HAVE_GETADDRINFO  "
-#else
-         "-HAVE_GETADDRINFO  "
 #endif
     );
 
@@ -838,5 +800,6 @@ int main (int argc, char **argv)
   }
 
   luaM_shutdown();
+  mutt_sasl_shutdown();
   exit (0);
 }