Mercurial > dovecot > core-2.2
changeset 3589:fead84acb13c HEAD
Added --build-options parameter. Patch by Andrey Panin
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 18 Sep 2005 20:18:18 +0300 |
parents | 1c90049a2ec8 |
children | 340e1b87c27b |
files | src/master/main.c |
diffstat | 1 files changed, 94 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/main.c Sun Sep 18 20:01:14 2005 +0300 +++ b/src/master/main.c Sun Sep 18 20:18:18 2005 +0300 @@ -569,7 +569,97 @@ static void print_help(void) { - printf("Usage: dovecot [-F] [-c <config file>]\n"); + printf("Usage: dovecot [-F] [-c <config file>] " + "[--version] [--build-options]\n"); +} + +static void print_build_options(void) +{ + printf("Build options:" +#ifdef IOLOOP_EPOLL + " ioloop=epoll" +#endif +#ifdef IOLOOP_POLL + " ioloop=poll" +#endif +#ifdef IOLOOP_SELECT + " ioloop=select" +#endif +#ifdef IOLOOP_NOTIFY_DNOTIFY + " dnotify" +#endif +#ifdef IOLOOP_NOTIFY_INOTIFY + " inotify" +#endif +#ifdef HAVE_IPV6 + " ipv6" +#endif +#ifdef HAVE_GNUTLS + " gnutls" +#endif +#ifdef HAVE_OPENSSL + " openssl" +#endif +#ifdef HAVE_MYSQL + " mysql" +#endif +#ifdef HAVE_PGSQL + " postgresql" +#endif + "\nPassdb: " +#ifdef PASSDB_BSDAUTH + "bsdauth " +#endif +#ifdef PASSDB_CHECKPASSWORD + "checkpassword " +#endif +#ifdef PASSDB_LDAP + "ldap " +#endif +#ifdef PASSDB_PAM + "pam " +#endif +#ifdef PASSDB_PASSWD + "passwd " +#endif +#ifdef PASSDB_PASSWD_FILE + "passwd-file " +#endif +#ifdef PASSDB_SHADOW + "shadow " +#endif +#ifdef PASSDB_SQL + "sql " +#endif +#ifdef PASSDB_VPOPMAIL + "vpopmail " +#endif + "\nUserdb: " +#ifdef USERDB_CHECKPASSWORD + "checkpassword " +#endif +#ifdef USERDB_LDAP + "ldap " +#endif +#ifdef USERDB_PASSDB + "passdb " +#endif +#ifdef USERDB_PASSWD + "passwd " +#endif +#ifdef USERDB_PASSWD_FILE + "passwd-file " +#endif +#ifdef USERDB_SQL + "sql " +#endif +#ifdef USERDB_STATIC + "static " +#endif +#ifdef USERDB_VPOPMAIL + "vpopmail " +#endif + "\n"); } int main(int argc, char *argv[]) @@ -606,6 +696,9 @@ } else if (strcmp(argv[i], "--version") == 0) { printf("%s\n", VERSION); return 0; + } else if (strcmp(argv[i], "--build-options") == 0) { + print_build_options(); + return 0; } else { print_help(); i_fatal("Unknown argument: %s", argv[1]);