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