]> diplodocus.org Git - nmh/blobdiff - uip/mhparam.c
Fix tests with oauth disabled.
[nmh] / uip / mhparam.c
index acb416c71a4bf41a8f7bbcde0c84cc7a2cb3dedd..f6daf9a53c28d80adc9e9b8e2e3bf2f74c40f11c 100644 (file)
@@ -29,6 +29,7 @@ DEFINE_SWITCH_ENUM(MHPARAM);
 DEFINE_SWITCH_ARRAY(MHPARAM, switches);
 #undef X
 
+extern char *mhbindir;
 extern char *mhetcdir;
 extern char *mhlibexecdir;
 
@@ -75,6 +76,13 @@ static char *iconv =
     "";
 #endif
 
+static char *oauth =
+#ifdef OAUTH_SUPPORT
+    "oauth";
+#else
+    "";
+#endif
+
 struct proc {
     char *p_name;
     char **p_field;
@@ -104,6 +112,7 @@ static struct proc procs [] = {
      { "version",          &version_num },
      { "whatnowproc",      &whatnowproc },
      { "whomproc",         &whomproc },
+     { "bindir",           &mhbindir },
      { "etcdir",           &mhetcdir },
      { "libdir",           &mhlibexecdir },
      { "libexecdir",       &mhlibexecdir },
@@ -112,6 +121,7 @@ static struct proc procs [] = {
      { "datalocking",      &datalocking },
      { "spoollocking",     &spoollocking },
      { "iconv",                   &iconv },
+     { "oauth",                   &oauth },
      { "sasl",             &sasl },
      { "tls",              &tls },
      { NULL,               NULL },