25 |
#include "headers.h" |
#include "headers.h" |
26 |
#include "extern.h" |
#include "extern.h" |
27 |
|
|
28 |
void |
static char *config_opts[] = { |
|
print_version(void) |
|
|
{ |
|
|
printf("\n%s\n", version); |
|
|
printf("%s\n\n", copyright); |
|
|
printf(_("Built-in support for: ")); |
|
29 |
#ifdef HAVE_REGEX |
#ifdef HAVE_REGEX |
30 |
printf("REGEX "); |
"REGEX", |
31 |
#endif /* HAVE_REGEX */ |
#endif /* HAVE_REGEX */ |
32 |
#ifdef HAVE_PCRE |
#ifdef HAVE_PCRE |
33 |
printf("PCRE "); |
"PCRE", |
34 |
#endif /* HAVE_PCRE */ |
#endif /* HAVE_PCRE */ |
35 |
#ifdef WITH_GUILE |
#ifdef WITH_GUILE |
36 |
printf("GUILE "); |
"GUILE", |
37 |
#endif /* WITH_GUILE */ |
#endif /* WITH_GUILE */ |
38 |
#ifdef HAVE_TLS |
#ifdef HAVE_TLS |
39 |
printf("GNUTLS "); |
"GNUTLS", |
40 |
#endif /* HAVE_TLS */ |
#endif /* HAVE_TLS */ |
41 |
#ifdef HAVE_SSL |
#ifdef HAVE_SSL |
42 |
printf("OPENSSL "); |
"OPENSSL", |
43 |
#endif /* HAVE_SSL */ |
#endif /* HAVE_SSL */ |
44 |
#ifdef HAVE_GPG |
#ifdef HAVE_GPG |
45 |
printf("GPG "); |
"GPG", |
46 |
#endif /* HAVE_GPG */ |
#endif /* HAVE_GPG */ |
47 |
#ifdef HAVE_PAM |
#ifdef HAVE_PAM |
48 |
printf("PAM "); |
"PAM", |
49 |
#endif /* HAVE_PAM */ |
#endif /* HAVE_PAM */ |
50 |
#ifdef USE_LIBWRAP |
#ifdef USE_LIBWRAP |
51 |
printf("LIBWRAP "); |
"LIBWRAP", |
52 |
#endif /* USE_LIBWRAP */ |
#endif /* USE_LIBWRAP */ |
53 |
#ifdef ENABLE_NLS |
#ifdef ENABLE_NLS |
54 |
printf("NLS "); |
"NLS", |
55 |
#endif /* ENABLE_NLS */ |
#endif /* ENABLE_NLS */ |
56 |
|
NULL |
57 |
|
}; |
58 |
|
|
59 |
|
void |
60 |
|
show_config_options(int delim) |
61 |
|
{ |
62 |
|
int i; |
63 |
|
|
64 |
|
for (i = 0; config_opts[i]; i++) |
65 |
|
printf("%s%c", config_opts[i], delim); |
66 |
|
} |
67 |
|
|
68 |
|
void |
69 |
|
print_config_options() |
70 |
|
{ |
71 |
|
show_config_options('\n'); |
72 |
|
exit(0); |
73 |
|
} |
74 |
|
|
75 |
|
void |
76 |
|
print_version(void) |
77 |
|
{ |
78 |
|
printf("\n%s\n", version); |
79 |
|
printf("%s\n\n", copyright); |
80 |
|
printf(_("Built-in support for: ")); |
81 |
|
show_config_options(' '); |
82 |
|
printf("\n"); |
83 |
|
|
84 |
puts(_("\n\nGNU Anubis is free software; you can redistribute it and/or modify\n" |
puts(_("\n\nGNU Anubis is free software; you can redistribute it and/or modify\n" |
85 |
"it under the terms of the GNU General Public License as published by\n" |
"it under the terms of the GNU General Public License as published by\n" |
86 |
"the Free Software Foundation; either version 2 of the License, or\n" |
"the Free Software Foundation; either version 2 of the License, or\n" |