]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - crypto/openssl/crypto/opensslconf.h
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / crypto / openssl / crypto / opensslconf.h
1 /* opensslconf.h */
2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4 /* OpenSSL was configured with the following options: */
5 #ifndef OPENSSL_DOING_MAKEDEPEND
6
7 #ifndef OPENSSL_NO_CAMELLIA
8 # define OPENSSL_NO_CAMELLIA
9 #endif
10 #ifndef OPENSSL_NO_GMP
11 # define OPENSSL_NO_GMP
12 #endif
13 #ifndef OPENSSL_NO_KRB5
14 # define OPENSSL_NO_KRB5
15 #endif
16 #ifndef OPENSSL_NO_MDC2
17 # define OPENSSL_NO_MDC2
18 #endif
19 #ifndef OPENSSL_NO_RC5
20 # define OPENSSL_NO_RC5
21 #endif
22 #ifndef OPENSSL_NO_RFC3779
23 # define OPENSSL_NO_RFC3779
24 #endif
25
26 #endif /* OPENSSL_DOING_MAKEDEPEND */
27 #ifndef OPENSSL_NO_DYNAMIC_ENGINE
28 # define OPENSSL_NO_DYNAMIC_ENGINE
29 #endif
30
31 /* The OPENSSL_NO_* macros are also defined as NO_* if the application
32    asks for it.  This is a transient feature that is provided for those
33    who haven't had the time to do the appropriate changes in their
34    applications.  */
35 #ifdef OPENSSL_ALGORITHM_DEFINES
36 # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
37 #  define NO_CAMELLIA
38 # endif
39 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
40 #  define NO_GMP
41 # endif
42 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
43 #  define NO_KRB5
44 # endif
45 # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
46 #  define NO_MDC2
47 # endif
48 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
49 #  define NO_RC5
50 # endif
51 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
52 #  define NO_RFC3779
53 # endif
54 #endif
55
56 /* crypto/opensslconf.h.in */
57
58 /* Generate 80386 code? */
59 #undef I386_ONLY
60
61 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
62 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
63 #define ENGINESDIR "/usr/local/ssl/lib/engines"
64 #define OPENSSLDIR "/usr/local/ssl"
65 #endif
66 #endif
67
68 #undef OPENSSL_UNISTD
69 #define OPENSSL_UNISTD <unistd.h>
70
71 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
72
73 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
74 #define IDEA_INT unsigned int
75 #endif
76
77 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
78 #define MD2_INT unsigned int
79 #endif
80
81 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
82 /* I need to put in a mod for the alpha - eay */
83 #define RC2_INT unsigned int
84 #endif
85
86 #if defined(HEADER_RC4_H)
87 #if !defined(RC4_INT)
88 /* using int types make the structure larger but make the code faster
89  * on most boxes I have tested - up to %20 faster. */
90 /*
91  * I don't know what does "most" mean, but declaring "int" is a must on:
92  * - Intel P6 because partial register stalls are very expensive;
93  * - elder Alpha because it lacks byte load/store instructions;
94  */
95 #define RC4_INT unsigned int
96 #endif
97 #if !defined(RC4_CHUNK)
98 /*
99  * This enables code handling data aligned at natural CPU word
100  * boundary. See crypto/rc4/rc4_enc.c for further details.
101  */
102 #undef RC4_CHUNK
103 #endif
104 #endif
105
106 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
107 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
108  * %20 speed up (longs are 8 bytes, int's are 4). */
109 #ifndef DES_LONG
110 #define DES_LONG unsigned long
111 #endif
112 #endif
113
114 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
115 #define CONFIG_HEADER_BN_H
116 #undef BN_LLONG
117
118 /* Should we define BN_DIV2W here? */
119
120 /* Only one for the following should be defined */
121 /* The prime number generation stuff may not work when
122  * EIGHT_BIT but I don't care since I've only used this mode
123  * for debuging the bignum libraries */
124 #undef SIXTY_FOUR_BIT_LONG
125 #undef SIXTY_FOUR_BIT
126 #define THIRTY_TWO_BIT
127 #undef SIXTEEN_BIT
128 #undef EIGHT_BIT
129 #endif
130
131 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
132 #define CONFIG_HEADER_RC4_LOCL_H
133 /* if this is defined data[i] is used instead of *data, this is a %20
134  * speedup on x86 */
135 #undef RC4_INDEX
136 #endif
137
138 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
139 #define CONFIG_HEADER_BF_LOCL_H
140 #undef BF_PTR
141 #endif /* HEADER_BF_LOCL_H */
142
143 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
144 #define CONFIG_HEADER_DES_LOCL_H
145 #ifndef DES_DEFAULT_OPTIONS
146 /* the following is tweaked from a config script, that is why it is a
147  * protected undef/define */
148 #ifndef DES_PTR
149 #undef DES_PTR
150 #endif
151
152 /* This helps C compiler generate the correct code for multiple functional
153  * units.  It reduces register dependancies at the expense of 2 more
154  * registers */
155 #ifndef DES_RISC1
156 #undef DES_RISC1
157 #endif
158
159 #ifndef DES_RISC2
160 #undef DES_RISC2
161 #endif
162
163 #if defined(DES_RISC1) && defined(DES_RISC2)
164 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
165 #endif
166
167 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
168  * Very mucy CPU dependant */
169 #ifndef DES_UNROLL
170 #undef DES_UNROLL
171 #endif
172
173 /* These default values were supplied by
174  * Peter Gutman <pgut001@cs.auckland.ac.nz>
175  * They are only used if nothing else has been defined */
176 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
177 /* Special defines which change the way the code is built depending on the
178    CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
179    even newer MIPS CPU's, but at the moment one size fits all for
180    optimization options.  Older Sparc's work better with only UNROLL, but
181    there's no way to tell at compile time what it is you're running on */
182  
183 #if defined( sun )              /* Newer Sparc's */
184 #  define DES_PTR
185 #  define DES_RISC1
186 #  define DES_UNROLL
187 #elif defined( __ultrix )       /* Older MIPS */
188 #  define DES_PTR
189 #  define DES_RISC2
190 #  define DES_UNROLL
191 #elif defined( __osf1__ )       /* Alpha */
192 #  define DES_PTR
193 #  define DES_RISC2
194 #elif defined ( _AIX )          /* RS6000 */
195   /* Unknown */
196 #elif defined( __hpux )         /* HP-PA */
197   /* Unknown */
198 #elif defined( __aux )          /* 68K */
199   /* Unknown */
200 #elif defined( __dgux )         /* 88K (but P6 in latest boxes) */
201 #  define DES_UNROLL
202 #elif defined( __sgi )          /* Newer MIPS */
203 #  define DES_PTR
204 #  define DES_RISC2
205 #  define DES_UNROLL
206 #elif defined(i386) || defined(__i386__)        /* x86 boxes, should be gcc */
207 #  define DES_PTR
208 #  define DES_RISC1
209 #  define DES_UNROLL
210 #endif /* Systems-specific speed defines */
211 #endif
212
213 #endif /* DES_DEFAULT_OPTIONS */
214 #endif /* HEADER_DES_LOCL_H */