summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-09-22 09:49:27 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-09-22 09:49:27 +0000
commitcc72de5624595044fe97caebcd15648ef26b7797 (patch)
tree675b3d67d6b4dac528a0c302e010b4cb5d5f59a4 /config
parente0a6ed0386490a79ab995580e253ec963abfe0e3 (diff)
downloadmailutils-cc72de5624595044fe97caebcd15648ef26b7797.tar.gz
mailutils-cc72de5624595044fe97caebcd15648ef26b7797.tar.bz2
New command line argument "sieve"
Diffstat (limited to 'config')
-rw-r--r--config/mailutils-config.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/config/mailutils-config.c b/config/mailutils-config.c
index 85d6c3869..7b03ba26d 100644
--- a/config/mailutils-config.c
+++ b/config/mailutils-config.c
@@ -32,8 +32,8 @@ static struct argp_option options[] = {
{"compile", 'c', NULL, 0,
N_("Print C compiler flags to compile with"), 0},
{"link", 'l', NULL, 0,
- N_("Print libraries to link with. Possible arguments are: auth, guile, all, "
- "mbox, mh, maildir, imap, pop"), 0},
+ N_("Print libraries to link with. Possible arguments are: auth, guile, "
+ "mbox, mh, maildir, imap, pop, sieve and all"), 0},
{"info", 'i', NULL, 0,
N_("Print a list of configuration options used to build mailutils. If arguments "
"are given, they are interpreted as a list of configuration options to check "
@@ -91,29 +91,31 @@ static const char *argp_capa[] = {
};
#ifdef WITH_TLS
-# define TLSAUTH 1
+# define NEEDAUTH 1
#else
-# define TLSAUTH 0
+# define NEEDAUTH 0
#endif
+#define NOTALL 2
struct lib_descr {
char *name;
char *libname;
- int needauth;
+ int flags;
} lib_descr[] = {
{ "mbox", "mu_mbox", 0 },
{ "mh", "mu_mh", 0 },
{ "maildir","mu_maildir", 0 },
- { "imap", "mu_imap", TLSAUTH },
- { "pop", "mu_pop", TLSAUTH },
+ { "imap", "mu_imap", NEEDAUTH },
+ { "pop", "mu_pop", NEEDAUTH },
{ "nntp", "mu_nntp", 0 },
+ { "sieve", "sieve", NOTALL },
{ NULL }
};
struct lib_entry {
int level;
char *ptr;
-} lib_entry[10];
+} lib_entry[16];
int nentry;
@@ -208,9 +210,11 @@ main (int argc, char **argv)
for (p = lib_descr; p->name; p++)
{
+ if (p->flags & NOTALL)
+ continue;
asprintf (&ptr, "-l%s", p->libname);
add_entry (0, ptr);
- if (p->needauth)
+ if (p->flags & NEEDAUTH)
add_entry (2, "-lmuauth " AUTHLIBS);
}
}
@@ -226,7 +230,7 @@ main (int argc, char **argv)
{
asprintf (&ptr, "-l%s", p->libname);
add_entry (0, ptr);
- if (p->needauth)
+ if (p->flags & NEEDAUTH)
add_entry (2, "-lmuauth " AUTHLIBS);
}
else

Return to:

Send suggestions and report system problems to the System administrator.