| 1 |
/* opensslconf.h */ |
| 2 |
/* WARNING: Generated automatically from opensslconf.h.in by Configure. */ |
| 3 |
|
| 4 |
#ifdef __cplusplus |
| 5 |
extern "C" { |
| 6 |
#endif |
| 7 |
/* OpenSSL was configured with the following options: */ |
| 8 |
#ifndef OPENSSL_SYSNAME_UEFI |
| 9 |
# define OPENSSL_SYSNAME_UEFI |
| 10 |
#endif |
| 11 |
#ifndef OPENSSL_DOING_MAKEDEPEND |
| 12 |
|
| 13 |
|
| 14 |
#ifndef OPENSSL_NO_BF |
| 15 |
# define OPENSSL_NO_BF |
| 16 |
#endif |
| 17 |
#ifndef OPENSSL_NO_CAMELLIA |
| 18 |
# define OPENSSL_NO_CAMELLIA |
| 19 |
#endif |
| 20 |
#ifndef OPENSSL_NO_CAPIENG |
| 21 |
# define OPENSSL_NO_CAPIENG |
| 22 |
#endif |
| 23 |
#ifndef OPENSSL_NO_CAST |
| 24 |
# define OPENSSL_NO_CAST |
| 25 |
#endif |
| 26 |
#ifndef OPENSSL_NO_CMS |
| 27 |
# define OPENSSL_NO_CMS |
| 28 |
#endif |
| 29 |
#ifndef OPENSSL_NO_DEPRECATED |
| 30 |
# define OPENSSL_NO_DEPRECATED |
| 31 |
#endif |
| 32 |
#ifndef OPENSSL_NO_DGRAM |
| 33 |
# define OPENSSL_NO_DGRAM |
| 34 |
#endif |
| 35 |
#ifndef OPENSSL_NO_DES |
| 36 |
# define OPENSSL_NO_DES |
| 37 |
#endif |
| 38 |
#ifndef OPENSSL_NO_DSA |
| 39 |
# define OPENSSL_NO_DSA |
| 40 |
#endif |
| 41 |
#ifndef OPENSSL_NO_DYNAMIC_ENGINE |
| 42 |
# define OPENSSL_NO_DYNAMIC_ENGINE |
| 43 |
#endif |
| 44 |
#ifndef OPENSSL_NO_EC |
| 45 |
# define OPENSSL_NO_EC |
| 46 |
#endif |
| 47 |
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 |
| 48 |
# define OPENSSL_NO_EC_NISTP_64_GCC_128 |
| 49 |
#endif |
| 50 |
#ifndef OPENSSL_NO_ECDH |
| 51 |
# define OPENSSL_NO_ECDH |
| 52 |
#endif |
| 53 |
#ifndef OPENSSL_NO_ECDSA |
| 54 |
# define OPENSSL_NO_ECDSA |
| 55 |
#endif |
| 56 |
#ifndef OPENSSL_NO_ENGINE |
| 57 |
# define OPENSSL_NO_ENGINE |
| 58 |
#endif |
| 59 |
#ifndef OPENSSL_NO_ENGINES |
| 60 |
# define OPENSSL_NO_ENGINES |
| 61 |
#endif |
| 62 |
#ifdef OPENSSL_NO_FILENAMES |
| 63 |
# undef OPENSSL_NO_FILENAMES |
| 64 |
#endif |
| 65 |
#ifndef OPENSSL_NO_FP_API |
| 66 |
# define OPENSSL_NO_FP_API |
| 67 |
#endif |
| 68 |
#ifndef OPENSSL_NO_GMP |
| 69 |
# define OPENSSL_NO_GMP |
| 70 |
#endif |
| 71 |
#ifndef OPENSSL_NO_GOST |
| 72 |
# define OPENSSL_NO_GOST |
| 73 |
#endif |
| 74 |
#ifndef OPENSSL_NO_IDEA |
| 75 |
# define OPENSSL_NO_IDEA |
| 76 |
#endif |
| 77 |
#ifndef OPENSSL_NO_JPAKE |
| 78 |
# define OPENSSL_NO_JPAKE |
| 79 |
#endif |
| 80 |
#ifndef OPENSSL_NO_KRB5 |
| 81 |
# define OPENSSL_NO_KRB5 |
| 82 |
#endif |
| 83 |
#ifndef OPENSSL_NO_LIBUNBOUND |
| 84 |
# define OPENSSL_NO_LIBUNBOUND |
| 85 |
#endif |
| 86 |
#ifndef OPENSSL_NO_LOCKING |
| 87 |
# define OPENSSL_NO_LOCKING |
| 88 |
#endif |
| 89 |
#ifndef OPENSSL_NO_MD2 |
| 90 |
# define OPENSSL_NO_MD2 |
| 91 |
#endif |
| 92 |
#ifndef OPENSSL_NO_MD4 |
| 93 |
# define OPENSSL_NO_MD4 |
| 94 |
#endif |
| 95 |
#ifndef OPENSSL_NO_MDC2 |
| 96 |
# define OPENSSL_NO_MDC2 |
| 97 |
#endif |
| 98 |
#ifndef OPENSSL_NO_POSIX_IO |
| 99 |
# define OPENSSL_NO_POSIX_IO |
| 100 |
#endif |
| 101 |
#ifndef OPENSSL_NO_RC2 |
| 102 |
# define OPENSSL_NO_RC2 |
| 103 |
#endif |
| 104 |
#ifndef OPENSSL_NO_RC5 |
| 105 |
# define OPENSSL_NO_RC5 |
| 106 |
#endif |
| 107 |
#ifndef OPENSSL_NO_RCS |
| 108 |
# define OPENSSL_NO_RCS |
| 109 |
#endif |
| 110 |
#ifndef OPENSSL_NO_RFC3779 |
| 111 |
# define OPENSSL_NO_RFC3779 |
| 112 |
#endif |
| 113 |
#ifndef OPENSSL_NO_RIPEMD |
| 114 |
# define OPENSSL_NO_RIPEMD |
| 115 |
#endif |
| 116 |
#ifndef OPENSSL_NO_SCRYPT |
| 117 |
# define OPENSSL_NO_SCRYPT |
| 118 |
#endif |
| 119 |
#ifndef OPENSSL_NO_SCT |
| 120 |
# define OPENSSL_NO_SCT |
| 121 |
#endif |
| 122 |
#ifndef OPENSSL_NO_SCTP |
| 123 |
# define OPENSSL_NO_SCTP |
| 124 |
#endif |
| 125 |
#ifndef OPENSSL_NO_SEED |
| 126 |
# define OPENSSL_NO_SEED |
| 127 |
#endif |
| 128 |
#ifndef OPENSSL_NO_SHA0 |
| 129 |
# define OPENSSL_NO_SHA0 |
| 130 |
#endif |
| 131 |
#ifndef OPENSSL_NO_SOCK |
| 132 |
# define OPENSSL_NO_SOCK |
| 133 |
#endif |
| 134 |
#ifndef OPENSSL_NO_SRP |
| 135 |
# define OPENSSL_NO_SRP |
| 136 |
#endif |
| 137 |
#ifndef OPENSSL_NO_SSL_TRACE |
| 138 |
# define OPENSSL_NO_SSL_TRACE |
| 139 |
#endif |
| 140 |
#ifndef OPENSSL_NO_SSL2 |
| 141 |
# define OPENSSL_NO_SSL2 |
| 142 |
#endif |
| 143 |
#ifndef OPENSSL_NO_SSL3 |
| 144 |
# define OPENSSL_NO_SSL3 |
| 145 |
#endif |
| 146 |
#ifndef OPENSSL_NO_STDIO |
| 147 |
# define OPENSSL_NO_STDIO |
| 148 |
#endif |
| 149 |
#ifndef OPENSSL_NO_STORE |
| 150 |
# define OPENSSL_NO_STORE |
| 151 |
#endif |
| 152 |
#ifndef OPENSSL_NO_TS |
| 153 |
# define OPENSSL_NO_TS |
| 154 |
#endif |
| 155 |
#ifndef OPENSSL_NO_UI |
| 156 |
# define OPENSSL_NO_UI |
| 157 |
#endif |
| 158 |
#ifndef OPENSSL_NO_UNIT_TEST |
| 159 |
# define OPENSSL_NO_UNIT_TEST |
| 160 |
#endif |
| 161 |
#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS |
| 162 |
# define OPENSSL_NO_WEAK_SSL_CIPHERS |
| 163 |
#endif |
| 164 |
#ifndef OPENSSL_NO_WHIRLPOOL |
| 165 |
# define OPENSSL_NO_WHIRLPOOL |
| 166 |
#endif |
| 167 |
|
| 168 |
#endif /* OPENSSL_DOING_MAKEDEPEND */ |
| 169 |
|
| 170 |
#ifndef OPENSSL_NO_ASM |
| 171 |
# define OPENSSL_NO_ASM |
| 172 |
#endif |
| 173 |
#ifndef OPENSSL_NO_ERR |
| 174 |
# define OPENSSL_NO_ERR |
| 175 |
#endif |
| 176 |
#ifndef OPENSSL_NO_HW |
| 177 |
# define OPENSSL_NO_HW |
| 178 |
#endif |
| 179 |
#ifndef OPENSSL_NO_DYNAMIC_ENGINE |
| 180 |
# define OPENSSL_NO_DYNAMIC_ENGINE |
| 181 |
#endif |
| 182 |
|
| 183 |
/* The OPENSSL_NO_* macros are also defined as NO_* if the application |
| 184 |
asks for it. This is a transient feature that is provided for those |
| 185 |
who haven't had the time to do the appropriate changes in their |
| 186 |
applications. */ |
| 187 |
#ifdef OPENSSL_ALGORITHM_DEFINES |
| 188 |
# if defined(OPENSSL_NO_BF) && !defined(NO_BF) |
| 189 |
# define NO_BF |
| 190 |
# endif |
| 191 |
# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA) |
| 192 |
# define NO_CAMELLIA |
| 193 |
# endif |
| 194 |
# if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG) |
| 195 |
# define NO_CAPIENG |
| 196 |
# endif |
| 197 |
# if defined(OPENSSL_NO_CAST) && !defined(NO_CAST) |
| 198 |
# define NO_CAST |
| 199 |
# endif |
| 200 |
# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS) |
| 201 |
# define NO_CMS |
| 202 |
# endif |
| 203 |
# if defined(OPENSSL_NO_DEPRECATED) && !defined(NO_DEPRECATED) |
| 204 |
# define NO_DEPRECATED |
| 205 |
# endif |
| 206 |
# if defined(OPENSSL_NO_DGRAM) && !defined(NO_DGRAM) |
| 207 |
# define NO_DGRAM |
| 208 |
# endif |
| 209 |
# if defined(OPENSSL_NO_DSA) && !defined(NO_DSA) |
| 210 |
# define NO_DSA |
| 211 |
# endif |
| 212 |
# if defined(OPENSSL_NO_DYNAMIC_ENGINE) && !defined(NO_DYNAMIC_ENGINE) |
| 213 |
# define NO_DYNAMIC_ENGINE |
| 214 |
# endif |
| 215 |
# if defined(OPENSSL_NO_EC) && !defined(NO_EC) |
| 216 |
# define NO_EC |
| 217 |
# endif |
| 218 |
# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128) |
| 219 |
# define NO_EC_NISTP_64_GCC_128 |
| 220 |
# endif |
| 221 |
# if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH) |
| 222 |
# define NO_ECDH |
| 223 |
# endif |
| 224 |
# if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA) |
| 225 |
# define NO_ECDSA |
| 226 |
# endif |
| 227 |
# if defined(OPENSSL_NO_ENGINE) && !defined(NO_ENGINE) |
| 228 |
# define NO_ENGINE |
| 229 |
# endif |
| 230 |
# if defined(OPENSSL_NO_ENGINES) && !defined(NO_ENGINES) |
| 231 |
# define NO_ENGINES |
| 232 |
# endif |
| 233 |
# if defined(OPENSSL_NO_FILENAMES) && !defined(NO_FILENAMES) |
| 234 |
# define NO_FILENAMES |
| 235 |
# endif |
| 236 |
# if defined(OPENSSL_NO_FP_API) && !defined(NO_FP_API) |
| 237 |
# define NO_FP_API |
| 238 |
# endif |
| 239 |
# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) |
| 240 |
# define NO_GMP |
| 241 |
# endif |
| 242 |
# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST) |
| 243 |
# define NO_GOST |
| 244 |
# endif |
| 245 |
# if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA) |
| 246 |
# define NO_IDEA |
| 247 |
# endif |
| 248 |
# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE) |
| 249 |
# define NO_JPAKE |
| 250 |
# endif |
| 251 |
# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) |
| 252 |
# define NO_KRB5 |
| 253 |
# endif |
| 254 |
# if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND) |
| 255 |
# define NO_LIBUNBOUND |
| 256 |
# endif |
| 257 |
# if defined(OPENSSL_NO_LOCKING) && !defined(NO_LOCKING) |
| 258 |
# define NO_LOCKING |
| 259 |
# endif |
| 260 |
# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2) |
| 261 |
# define NO_MD2 |
| 262 |
# endif |
| 263 |
# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2) |
| 264 |
# define NO_MDC2 |
| 265 |
# endif |
| 266 |
# if defined(OPENSSL_NO_POSIX_IO) && !defined(NO_POSIX_IO) |
| 267 |
# define NO_POSIX_IO |
| 268 |
# endif |
| 269 |
# if defined(OPENSSL_NO_RC2) && !defined(NO_RC2) |
| 270 |
# define NO_RC2 |
| 271 |
# endif |
| 272 |
# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5) |
| 273 |
# define NO_RC5 |
| 274 |
# endif |
| 275 |
# if defined(OPENSSL_NO_RCS) && !defined(NO_RCS) |
| 276 |
# define NO_RCS |
| 277 |
# endif |
| 278 |
# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779) |
| 279 |
# define NO_RFC3779 |
| 280 |
# endif |
| 281 |
# if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD) |
| 282 |
# define NO_RIPEMD |
| 283 |
# endif |
| 284 |
# if defined(OPENSSL_NO_SCRYPT) && !defined(NO_SCRYPT) |
| 285 |
# define NO_SCRYPT |
| 286 |
# endif |
| 287 |
# if defined(OPENSSL_NO_SCT) && !defined(NO_SCT) |
| 288 |
# define NO_SCT |
| 289 |
# endif |
| 290 |
# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP) |
| 291 |
# define NO_SCTP |
| 292 |
# endif |
| 293 |
# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED) |
| 294 |
# define NO_SEED |
| 295 |
# endif |
| 296 |
# if defined(OPENSSL_NO_SHA0) && !defined(NO_SHA0) |
| 297 |
# define NO_SHA0 |
| 298 |
# endif |
| 299 |
# if defined(OPENSSL_NO_SOCK) && !defined(NO_SOCK) |
| 300 |
# define NO_SOCK |
| 301 |
# endif |
| 302 |
# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP) |
| 303 |
# define NO_SRP |
| 304 |
# endif |
| 305 |
# if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE) |
| 306 |
# define NO_SSL_TRACE |
| 307 |
# endif |
| 308 |
# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2) |
| 309 |
# define NO_SSL2 |
| 310 |
# endif |
| 311 |
# if defined(OPENSSL_NO_SSL3) && !defined(NO_SSL3) |
| 312 |
# define NO_SSL3 |
| 313 |
# endif |
| 314 |
# if defined(OPENSSL_NO_STDIO) && !defined(NO_STDIO) |
| 315 |
# define NO_STDIO |
| 316 |
# endif |
| 317 |
# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE) |
| 318 |
# define NO_STORE |
| 319 |
# endif |
| 320 |
# if defined(OPENSSL_NO_TS) && !defined(NO_TS) |
| 321 |
# define NO_TS |
| 322 |
# endif |
| 323 |
# if defined(OPENSSL_NO_UI) && !defined(NO_UI) |
| 324 |
# define NO_UI |
| 325 |
# endif |
| 326 |
# if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST) |
| 327 |
# define NO_UNIT_TEST |
| 328 |
# endif |
| 329 |
# if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS) |
| 330 |
# define NO_WEAK_SSL_CIPHERS |
| 331 |
# endif |
| 332 |
# if defined(OPENSSL_NO_WHIRLPOOL) && !defined(NO_WHIRLPOOL) |
| 333 |
# define NO_WHIRLPOOL |
| 334 |
# endif |
| 335 |
#endif |
| 336 |
|
| 337 |
/* crypto/opensslconf.h.in */ |
| 338 |
|
| 339 |
#ifndef OPENSSL_FILE |
| 340 |
#ifdef OPENSSL_NO_FILENAMES |
| 341 |
#define OPENSSL_FILE "" |
| 342 |
#define OPENSSL_LINE 0 |
| 343 |
#else |
| 344 |
#define OPENSSL_FILE __FILE__ |
| 345 |
#define OPENSSL_LINE __LINE__ |
| 346 |
#endif |
| 347 |
#endif |
| 348 |
|
| 349 |
/* Generate 80386 code? */ |
| 350 |
#undef I386_ONLY |
| 351 |
|
| 352 |
#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ |
| 353 |
#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) |
| 354 |
#define ENGINESDIR "/usr/local/ssl/lib/engines" |
| 355 |
#define OPENSSLDIR "/usr/local/ssl" |
| 356 |
#endif |
| 357 |
#endif |
| 358 |
|
| 359 |
#undef OPENSSL_UNISTD |
| 360 |
#define OPENSSL_UNISTD <unistd.h> |
| 361 |
|
| 362 |
#undef OPENSSL_EXPORT_VAR_AS_FUNCTION |
| 363 |
|
| 364 |
#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) |
| 365 |
#define IDEA_INT unsigned int |
| 366 |
#endif |
| 367 |
|
| 368 |
#if defined(HEADER_MD2_H) && !defined(MD2_INT) |
| 369 |
#define MD2_INT unsigned int |
| 370 |
#endif |
| 371 |
|
| 372 |
#if defined(HEADER_RC2_H) && !defined(RC2_INT) |
| 373 |
/* I need to put in a mod for the alpha - eay */ |
| 374 |
#define RC2_INT unsigned int |
| 375 |
#endif |
| 376 |
|
| 377 |
#if defined(HEADER_RC4_H) |
| 378 |
#if !defined(RC4_INT) |
| 379 |
/* using int types make the structure larger but make the code faster |
| 380 |
* on most boxes I have tested - up to %20 faster. */ |
| 381 |
/* |
| 382 |
* I don't know what does "most" mean, but declaring "int" is a must on: |
| 383 |
* - Intel P6 because partial register stalls are very expensive; |
| 384 |
* - elder Alpha because it lacks byte load/store instructions; |
| 385 |
*/ |
| 386 |
#define RC4_INT unsigned int |
| 387 |
#endif |
| 388 |
#if !defined(RC4_CHUNK) |
| 389 |
/* |
| 390 |
* This enables code handling data aligned at natural CPU word |
| 391 |
* boundary. See crypto/rc4/rc4_enc.c for further details. |
| 392 |
*/ |
| 393 |
#undef RC4_CHUNK |
| 394 |
#endif |
| 395 |
#endif |
| 396 |
|
| 397 |
#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) |
| 398 |
/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a |
| 399 |
* %20 speed up (longs are 8 bytes, int's are 4). */ |
| 400 |
#ifndef DES_LONG |
| 401 |
#define DES_LONG unsigned long |
| 402 |
#endif |
| 403 |
#endif |
| 404 |
|
| 405 |
#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) && !defined(OPENSSL_SYSNAME_UEFI) |
| 406 |
#define CONFIG_HEADER_BN_H |
| 407 |
#undef BN_LLONG |
| 408 |
|
| 409 |
/* Should we define BN_DIV2W here? */ |
| 410 |
|
| 411 |
/* Only one for the following should be defined */ |
| 412 |
#undef SIXTY_FOUR_BIT_LONG |
| 413 |
#undef SIXTY_FOUR_BIT |
| 414 |
#define THIRTY_TWO_BIT |
| 415 |
#endif |
| 416 |
|
| 417 |
#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) |
| 418 |
#define CONFIG_HEADER_RC4_LOCL_H |
| 419 |
/* if this is defined data[i] is used instead of *data, this is a %20 |
| 420 |
* speedup on x86 */ |
| 421 |
#undef RC4_INDEX |
| 422 |
#endif |
| 423 |
|
| 424 |
#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) |
| 425 |
#define CONFIG_HEADER_BF_LOCL_H |
| 426 |
#undef BF_PTR |
| 427 |
#endif /* HEADER_BF_LOCL_H */ |
| 428 |
|
| 429 |
#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) |
| 430 |
#define CONFIG_HEADER_DES_LOCL_H |
| 431 |
#ifndef DES_DEFAULT_OPTIONS |
| 432 |
/* the following is tweaked from a config script, that is why it is a |
| 433 |
* protected undef/define */ |
| 434 |
#ifndef DES_PTR |
| 435 |
#undef DES_PTR |
| 436 |
#endif |
| 437 |
|
| 438 |
/* This helps C compiler generate the correct code for multiple functional |
| 439 |
* units. It reduces register dependancies at the expense of 2 more |
| 440 |
* registers */ |
| 441 |
#ifndef DES_RISC1 |
| 442 |
#undef DES_RISC1 |
| 443 |
#endif |
| 444 |
|
| 445 |
#ifndef DES_RISC2 |
| 446 |
#undef DES_RISC2 |
| 447 |
#endif |
| 448 |
|
| 449 |
#if defined(DES_RISC1) && defined(DES_RISC2) |
| 450 |
#error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! |
| 451 |
#endif |
| 452 |
|
| 453 |
/* Unroll the inner loop, this sometimes helps, sometimes hinders. |
| 454 |
* Very mucy CPU dependant */ |
| 455 |
#ifndef DES_UNROLL |
| 456 |
#undef DES_UNROLL |
| 457 |
#endif |
| 458 |
|
| 459 |
/* These default values were supplied by |
| 460 |
* Peter Gutman <[email protected]> |
| 461 |
* They are only used if nothing else has been defined */ |
| 462 |
#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) |
| 463 |
/* Special defines which change the way the code is built depending on the |
| 464 |
CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find |
| 465 |
even newer MIPS CPU's, but at the moment one size fits all for |
| 466 |
optimization options. Older Sparc's work better with only UNROLL, but |
| 467 |
there's no way to tell at compile time what it is you're running on */ |
| 468 |
|
| 469 |
#if defined( __sun ) || defined ( sun ) /* Newer Sparc's */ |
| 470 |
# define DES_PTR |
| 471 |
# define DES_RISC1 |
| 472 |
# define DES_UNROLL |
| 473 |
#elif defined( __ultrix ) /* Older MIPS */ |
| 474 |
# define DES_PTR |
| 475 |
# define DES_RISC2 |
| 476 |
# define DES_UNROLL |
| 477 |
#elif defined( __osf1__ ) /* Alpha */ |
| 478 |
# define DES_PTR |
| 479 |
# define DES_RISC2 |
| 480 |
#elif defined ( _AIX ) /* RS6000 */ |
| 481 |
/* Unknown */ |
| 482 |
#elif defined( __hpux ) /* HP-PA */ |
| 483 |
/* Unknown */ |
| 484 |
#elif defined( __aux ) /* 68K */ |
| 485 |
/* Unknown */ |
| 486 |
#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ |
| 487 |
# define DES_UNROLL |
| 488 |
#elif defined( __sgi ) /* Newer MIPS */ |
| 489 |
# define DES_PTR |
| 490 |
# define DES_RISC2 |
| 491 |
# define DES_UNROLL |
| 492 |
#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ |
| 493 |
# define DES_PTR |
| 494 |
# define DES_RISC1 |
| 495 |
# define DES_UNROLL |
| 496 |
#endif /* Systems-specific speed defines */ |
| 497 |
#endif |
| 498 |
|
| 499 |
#endif /* DES_DEFAULT_OPTIONS */ |
| 500 |
#endif /* HEADER_DES_LOCL_H */ |
| 501 |
#ifdef __cplusplus |
| 502 |
} |
| 503 |
#endif |