]> sjero.net Git - wget/blob - src/build_info.c
Adds build information to the --version command line option.
[wget] / src / build_info.c
1 /* This stores global variables that are initialized with 
2    preprocessor declarations for output with the --version flag.
3
4    Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
5    2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6
7 This file is part of GNU Wget.
8
9 GNU Wget is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 GNU Wget is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with Wget.  If not, see <http://www.gnu.org/licenses/>.
21
22 Additional permission under GNU GPL version 3 section 7
23
24 If you modify this program, or any covered work, by linking or
25 combining it with the OpenSSL project's OpenSSL library (or a
26 modified version of that library), containing parts covered by the
27 terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
28 grants you additional permission to convey the resulting work.
29 Corresponding Source for a non-source form of such a combination
30 shall include the source code for the parts of OpenSSL used as well
31 as that of the covered work.  */
32
33 #include "config.h"
34 #include <stdio.h>
35
36 char *system_wgetrc = SYSTEM_WGETRC;
37 char *locale_dir = LOCALEDIR;
38
39 const char* (compiled_features[]) =
40 {
41
42 #ifdef ENABLE_DIGEST
43   "+digest",
44 #else
45   "-digest",
46 #endif
47
48 #ifdef ENABLE_IPV6
49   "+ipv6",
50 #else
51   "-ipv6",
52 #endif
53
54 #ifdef ENABLE_NLS
55   "+nls",
56 #else
57   "-nls",
58 #endif
59
60 #ifdef HAVE_NTLM
61   "+ntlm",
62 #else
63   "-ntlm",
64 #endif
65
66 #ifdef ENABLE_OPIE
67   "+opie",
68 #else
69   "-opie",
70 #endif
71
72 #ifdef HAVE_MD5
73 #ifdef HAVE_BUILTIN_MD5
74   "+md5/builtin", 
75 #elif HAVE_OPENSSL_MD5
76   "+md5/openssl",
77 #elif HAVE_SOLARIS_MD5
78   "+md5/solaris",
79 #else
80 #error "md5 set, but no library found!",
81 #endif
82 #else
83   "-md5",
84 #endif
85
86 #ifdef HAVE_LIBGNUTLS
87   "+gnutls",
88 #else
89   "-gnutls",
90 #endif
91
92 #ifdef HAVE_LIBSSL
93   "+ssl",
94 #else
95   "-ssl",
96 #endif
97
98 #ifdef HAVE_GETTEXT
99   "+gettext",
100 #else
101   "-gettext",
102 #endif
103   /* sentinel value */
104   NULL
105 };
106
107