diff options
Diffstat (limited to 'src/lib/libssl/src/config')
-rw-r--r-- | src/lib/libssl/src/config | 293 |
1 files changed, 249 insertions, 44 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config index d22836f80f..a7a40e04db 100644 --- a/src/lib/libssl/src/config +++ b/src/lib/libssl/src/config | |||
@@ -20,6 +20,31 @@ | |||
20 | # Be as similar to the output of config.guess/config.sub | 20 | # Be as similar to the output of config.guess/config.sub |
21 | # as possible. | 21 | # as possible. |
22 | 22 | ||
23 | PREFIX="" | ||
24 | SUFFIX="" | ||
25 | TEST="false" | ||
26 | |||
27 | # pick up any command line args to config | ||
28 | for i | ||
29 | do | ||
30 | case "$i" in | ||
31 | -d*) PREFIX="debug-";; | ||
32 | -t*) TEST="true";; | ||
33 | -h*) TEST="true"; cat <<EOF | ||
34 | Usage: config [options] | ||
35 | -d Add a debug- prefix to machine choice. | ||
36 | -t Test mode, do not run the Configure perl script. | ||
37 | -h This help. | ||
38 | |||
39 | Any other text will be passed to the Configure perl script. | ||
40 | See INSTALL for instructions. | ||
41 | |||
42 | EOF | ||
43 | ;; | ||
44 | *) options=$options" $i" ;; | ||
45 | esac | ||
46 | done | ||
47 | |||
23 | # First get uname entries that we use below | 48 | # First get uname entries that we use below |
24 | 49 | ||
25 | MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown" | 50 | MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown" |
@@ -68,6 +93,11 @@ if [ "x$XREL" != "x" ]; then | |||
68 | 4.2) | 93 | 4.2) |
69 | echo "whatever-whatever-unixware1"; exit 0 | 94 | echo "whatever-whatever-unixware1"; exit 0 |
70 | ;; | 95 | ;; |
96 | OpenUNIX) | ||
97 | if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x8" ]; then | ||
98 | echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0 | ||
99 | fi | ||
100 | ;; | ||
71 | 5) | 101 | 5) |
72 | if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then | 102 | if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then |
73 | echo "${MACHINE}-sco-unixware7"; exit 0 | 103 | echo "${MACHINE}-sco-unixware7"; exit 0 |
@@ -110,10 +140,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
110 | HP-UX:*) | 140 | HP-UX:*) |
111 | HPUXVER=`echo ${RELEASE}|sed -e 's/[^.]*.[0B]*//'` | 141 | HPUXVER=`echo ${RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
112 | case "$HPUXVER" in | 142 | case "$HPUXVER" in |
113 | 11.*) | 143 | 1[0-9].*) # HPUX 10 and 11 targets are unified |
114 | echo "${MACHINE}-hp-hpux11"; exit 0 | ||
115 | ;; | ||
116 | 10.*) | ||
117 | echo "${MACHINE}-hp-hpux10"; exit 0 | 144 | echo "${MACHINE}-hp-hpux10"; exit 0 |
118 | ;; | 145 | ;; |
119 | *) | 146 | *) |
@@ -142,6 +169,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
142 | echo "${MACHINE}-whatever-linux1"; exit 0 | 169 | echo "${MACHINE}-whatever-linux1"; exit 0 |
143 | ;; | 170 | ;; |
144 | 171 | ||
172 | GNU*) | ||
173 | echo "hurd-x86"; exit 0; | ||
174 | ;; | ||
175 | |||
145 | LynxOS:*) | 176 | LynxOS:*) |
146 | echo "${MACHINE}-lynx-lynxos"; exit 0 | 177 | echo "${MACHINE}-lynx-lynxos"; exit 0 |
147 | ;; | 178 | ;; |
@@ -195,15 +226,33 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
195 | echo "${MACHINE}-whatever-openbsd"; exit 0 | 226 | echo "${MACHINE}-whatever-openbsd"; exit 0 |
196 | ;; | 227 | ;; |
197 | 228 | ||
229 | OpenUNIX:*) | ||
230 | echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0 | ||
231 | ;; | ||
232 | |||
198 | OSF1:*:*:*alpha*) | 233 | OSF1:*:*:*alpha*) |
199 | echo "${MACHINE}-dec-osf"; exit 0 | 234 | OSFMAJOR=`echo ${RELEASE}| sed -e 's/^V\([0-9]*\)\..*$/\1/'` |
235 | case "$OSFMAJOR" in | ||
236 | 4|5) | ||
237 | echo "${MACHINE}-dec-tru64"; exit 0 | ||
238 | ;; | ||
239 | 1|2|3) | ||
240 | echo "${MACHINE}-dec-osf"; exit 0 | ||
241 | ;; | ||
242 | *) | ||
243 | echo "${MACHINE}-dec-osf"; exit 0 | ||
244 | ;; | ||
245 | esac | ||
200 | ;; | 246 | ;; |
201 | 247 | ||
202 | QNX:*) | 248 | QNX:*) |
203 | case "$VERSION" in | 249 | case "$RELEASE" in |
204 | 4*) | 250 | 4*) |
205 | echo "${MACHINE}-whatever-qnx4" | 251 | echo "${MACHINE}-whatever-qnx4" |
206 | ;; | 252 | ;; |
253 | 6*) | ||
254 | echo "${MACHINE}-whatever-qnx6" | ||
255 | ;; | ||
207 | *) | 256 | *) |
208 | echo "${MACHINE}-whatever-qnx" | 257 | echo "${MACHINE}-whatever-qnx" |
209 | ;; | 258 | ;; |
@@ -219,6 +268,18 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
219 | echo "ppc-apple-rhapsody"; exit 0 | 268 | echo "ppc-apple-rhapsody"; exit 0 |
220 | ;; | 269 | ;; |
221 | 270 | ||
271 | Darwin:*) | ||
272 | case "$MACHINE" in | ||
273 | Power*) | ||
274 | echo "ppc-apple-darwin${VERSION}" | ||
275 | ;; | ||
276 | *) | ||
277 | echo "i386-apple-darwin${VERSION}" | ||
278 | ;; | ||
279 | esac | ||
280 | exit 0 | ||
281 | ;; | ||
282 | |||
222 | SunOS:5.*) | 283 | SunOS:5.*) |
223 | echo "${MACHINE}-whatever-solaris2"; exit 0 | 284 | echo "${MACHINE}-whatever-solaris2"; exit 0 |
224 | ;; | 285 | ;; |
@@ -271,6 +332,25 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
271 | echo "mips-sony-newsos4"; exit 0; | 332 | echo "mips-sony-newsos4"; exit 0; |
272 | ;; | 333 | ;; |
273 | 334 | ||
335 | CYGWIN*) | ||
336 | case "$RELEASE" in | ||
337 | [bB]*|1.0|1.[12].*) | ||
338 | echo "${MACHINE}-whatever-cygwin_pre1.3" | ||
339 | ;; | ||
340 | *) | ||
341 | echo "${MACHINE}-whatever-cygwin" | ||
342 | ;; | ||
343 | esac | ||
344 | exit 0 | ||
345 | ;; | ||
346 | |||
347 | *"CRAY T3E") | ||
348 | echo "t3e-cray-unicosmk"; exit 0; | ||
349 | ;; | ||
350 | |||
351 | *CRAY*) | ||
352 | echo "j90-cray-unicos"; exit 0; | ||
353 | ;; | ||
274 | esac | 354 | esac |
275 | 355 | ||
276 | # | 356 | # |
@@ -308,31 +388,6 @@ exit 0 | |||
308 | # this is where the translation occurs into SSLeay terms | 388 | # this is where the translation occurs into SSLeay terms |
309 | # --------------------------------------------------------------------------- | 389 | # --------------------------------------------------------------------------- |
310 | 390 | ||
311 | PREFIX="" | ||
312 | SUFFIX="" | ||
313 | TEST="false" | ||
314 | |||
315 | # pick up any command line args to config | ||
316 | for i | ||
317 | do | ||
318 | case "$i" in | ||
319 | -d*) PREFIX="debug-";; | ||
320 | -t*) TEST="true";; | ||
321 | -h*) TEST="true"; cat <<EOF | ||
322 | Usage: config [options] | ||
323 | -d Add a debug- prefix to machine choice. | ||
324 | -t Test mode, do not run the Configure perl script. | ||
325 | -h This help. | ||
326 | |||
327 | Any other text will be passed to the Configure perl script. | ||
328 | See INSTALL for instructions. | ||
329 | |||
330 | EOF | ||
331 | ;; | ||
332 | *) options=$options" $i" ;; | ||
333 | esac | ||
334 | done | ||
335 | |||
336 | # figure out if gcc is available and if so we use it otherwise | 391 | # figure out if gcc is available and if so we use it otherwise |
337 | # we fallback to whatever cc does on the system | 392 | # we fallback to whatever cc does on the system |
338 | GCCVER=`(gcc --version) 2>/dev/null` | 393 | GCCVER=`(gcc --version) 2>/dev/null` |
@@ -345,8 +400,18 @@ if [ "$GCCVER" != "" ]; then | |||
345 | else | 400 | else |
346 | CC=cc | 401 | CC=cc |
347 | fi | 402 | fi |
403 | GCCVER=${GCCVER:-0} | ||
348 | 404 | ||
349 | if [ "$SYSTEM" = "SunOS" ]; then | 405 | if [ "$SYSTEM" = "SunOS" ]; then |
406 | if [ $GCCVER -ge 30 ]; then | ||
407 | # 64-bit ABI isn't officially supported in gcc 3.0, but it appears | ||
408 | # to be working, at the very least 'make test' passes... | ||
409 | if gcc -v -E -x c /dev/null 2>&1 | grep __arch64__ > /dev/null; then | ||
410 | GCC_ARCH="-m64" | ||
411 | else | ||
412 | GCC_ARCH="-m32" | ||
413 | fi | ||
414 | fi | ||
350 | # check for WorkShop C, expected output is "cc: blah-blah C x.x" | 415 | # check for WorkShop C, expected output is "cc: blah-blah C x.x" |
351 | CCVER=`(cc -V 2>&1) 2>/dev/null | \ | 416 | CCVER=`(cc -V 2>&1) 2>/dev/null | \ |
352 | egrep -e '^cc: .* C [0-9]\.[0-9]' | \ | 417 | egrep -e '^cc: .* C [0-9]\.[0-9]' | \ |
@@ -377,7 +442,6 @@ if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then | |||
377 | fi | 442 | fi |
378 | fi | 443 | fi |
379 | 444 | ||
380 | GCCVER=${GCCVER:-0} | ||
381 | CCVER=${CCVER:-0} | 445 | CCVER=${CCVER:-0} |
382 | 446 | ||
383 | # read the output of the embedded GuessOS | 447 | # read the output of the embedded GuessOS |
@@ -410,8 +474,10 @@ case "$GUESSOS" in | |||
410 | mips4-sgi-irix64) | 474 | mips4-sgi-irix64) |
411 | echo "WARNING! If you wish to build 64-bit library, then you have to" | 475 | echo "WARNING! If you wish to build 64-bit library, then you have to" |
412 | echo " invoke './Configure irix64-mips4-$CC' *manually*." | 476 | echo " invoke './Configure irix64-mips4-$CC' *manually*." |
413 | echo " Type return if you want to continue, Ctrl-C to abort." | 477 | if [ "$TEST" = "false" ]; then |
414 | read waste < /dev/tty | 478 | echo " You have about 5 seconds to press Ctrl-C to abort." |
479 | (stty -icanon min 0 time 50; read waste) < /dev/tty | ||
480 | fi | ||
415 | CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` | 481 | CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` |
416 | CPU=${CPU:-0} | 482 | CPU=${CPU:-0} |
417 | if [ $CPU -ge 5000 ]; then | 483 | if [ $CPU -ge 5000 ]; then |
@@ -435,10 +501,27 @@ case "$GUESSOS" in | |||
435 | esac | 501 | esac |
436 | fi | 502 | fi |
437 | ;; | 503 | ;; |
438 | mips-*-linux?) OUT="linux-mips" ;; | 504 | mips-*-linux?) |
505 | cat >dummy.c <<EOF | ||
506 | #include <stdio.h> /* for printf() prototype */ | ||
507 | int main (argc, argv) int argc; char *argv[]; { | ||
508 | #ifdef __MIPSEB__ | ||
509 | printf ("linux-%s\n", argv[1]); | ||
510 | #endif | ||
511 | #ifdef __MIPSEL__ | ||
512 | printf ("linux-%sel\n", argv[1]); | ||
513 | #endif | ||
514 | return 0; | ||
515 | } | ||
516 | EOF | ||
517 | ${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}` | ||
518 | rm dummy dummy.c | ||
519 | ;; | ||
439 | ppc-*-linux2) OUT="linux-ppc" ;; | 520 | ppc-*-linux2) OUT="linux-ppc" ;; |
440 | m68k-*-linux*) OUT="linux-m68k" ;; | 521 | m68k-*-linux*) OUT="linux-m68k" ;; |
441 | ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;; | 522 | ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;; |
523 | ppc-apple-darwin*) OUT="darwin-ppc-cc" ;; | ||
524 | i386-apple-darwin*) OUT="darwin-i386-cc" ;; | ||
442 | sparc64-*-linux2) | 525 | sparc64-*-linux2) |
443 | #Before we can uncomment following lines we have to wait at least | 526 | #Before we can uncomment following lines we have to wait at least |
444 | #till 64-bit glibc for SPARC is operational:-( | 527 | #till 64-bit glibc for SPARC is operational:-( |
@@ -455,19 +538,76 @@ case "$GUESSOS" in | |||
455 | sun4d) OUT="linux-sparcv8" ;; | 538 | sun4d) OUT="linux-sparcv8" ;; |
456 | *) OUT="linux-sparcv7" ;; | 539 | *) OUT="linux-sparcv7" ;; |
457 | esac ;; | 540 | esac ;; |
541 | parisc-*-linux2) | ||
542 | CPUARCH=`awk '/cpu family/{print substr($5,1,3)}' /proc/cpuinfo` | ||
543 | CPUSCHEDULE=`awk '/^cpu.[ ]: PA/{print substr($3,3)}' /proc/cpuinfo` | ||
544 | |||
545 | # ??TODO ?? Model transformations | ||
546 | # 0. CPU Architecture for the 1.1 processor has letter suffixes. We strip that off | ||
547 | # assuming no further arch. identification will ever be used by GCC. | ||
548 | # 1. I'm most concerned about whether is a 7300LC is closer to a 7100 versus a 7100LC. | ||
549 | # 2. The variant 64-bit processors cause concern should GCC support explicit schedulers | ||
550 | # for these chips in the future. | ||
551 | # PA7300LC -> 7100LC (1.1) | ||
552 | # PA8200 -> 8000 (2.0) | ||
553 | # PA8500 -> 8000 (2.0) | ||
554 | # PA8600 -> 8000 (2.0) | ||
555 | |||
556 | CPUSCHEDULE=`echo $CPUSCHEDULE|sed -e 's/7300LC/7100LC/' -e 's/8?00/8000/'` | ||
557 | # Finish Model transformations | ||
558 | |||
559 | options="$options -mschedule=$CPUSCHEDULE -march=$CPUARCH" | ||
560 | OUT="linux-parisc" ;; | ||
458 | arm*-*-linux2) OUT="linux-elf-arm" ;; | 561 | arm*-*-linux2) OUT="linux-elf-arm" ;; |
459 | s390-*-linux2) OUT="linux-s390" ;; | 562 | s390-*-linux2) OUT="linux-s390" ;; |
460 | *-*-linux2) OUT="linux-elf" ;; | 563 | s390x-*-linux?) OUT="linux-s390x" ;; |
564 | *-*-linux2) OUT="linux-elf" | ||
565 | if [ "$GCCVER" -gt 28 ]; then | ||
566 | if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then | ||
567 | OUT="linux-pentium" | ||
568 | fi | ||
569 | if grep '^model.*Pentium Pro' /proc/cpuinfo >/dev/null ; then | ||
570 | OUT="linux-ppro" | ||
571 | fi | ||
572 | if grep '^model.*K6' /proc/cpuinfo >/dev/null ; then | ||
573 | OUT="linux-k6" | ||
574 | fi | ||
575 | fi ;; | ||
461 | *-*-linux1) OUT="linux-aout" ;; | 576 | *-*-linux1) OUT="linux-aout" ;; |
462 | sun4u*-*-solaris2) | 577 | sun4u*-*-solaris2) |
578 | OUT="solaris-sparcv9-$CC" | ||
463 | ISA64=`(isalist) 2>/dev/null | grep sparcv9` | 579 | ISA64=`(isalist) 2>/dev/null | grep sparcv9` |
464 | if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then | 580 | if [ "$ISA64" != "" ]; then |
581 | if [ "$CC" = "cc" -a $CCVER -ge 50 ]; then | ||
465 | echo "WARNING! If you wish to build 64-bit library, then you have to" | 582 | echo "WARNING! If you wish to build 64-bit library, then you have to" |
466 | echo " invoke './Configure solaris64-sparcv9-cc' *manually*." | 583 | echo " invoke './Configure solaris64-sparcv9-cc' *manually*." |
467 | echo " Type return if you want to continue, Ctrl-C to abort." | 584 | if [ "$TEST" = "false" ]; then |
468 | read waste < /dev/tty | 585 | echo " You have about 5 seconds to press Ctrl-C to abort." |
586 | (stty -icanon min 0 time 50; read waste) < /dev/tty | ||
587 | fi | ||
588 | elif [ "$CC" = "gcc" -a "$GCC_ARCH" = "-m64" ]; then | ||
589 | # $GCC_ARCH denotes default ABI chosen by compiler driver | ||
590 | # (first one found on the $PATH). I assume that user | ||
591 | # expects certain consistency with the rest of his builds | ||
592 | # and therefore switch over to 64-bit. <appro> | ||
593 | OUT="solaris64-sparcv9-gcc" | ||
594 | echo "WARNING! If you wish to build 32-bit library, then you have to" | ||
595 | echo " invoke './Configure solaris-sparcv9-gcc' *manually*." | ||
596 | if [ "$TEST" = "false" ]; then | ||
597 | echo " You have about 5 seconds to press Ctrl-C to abort." | ||
598 | (stty -icanon min 0 time 50; read waste) < /dev/tty | ||
599 | fi | ||
600 | elif [ "$GCC_ARCH" = "-m32" ]; then | ||
601 | echo "NOTICE! If you *know* that your GNU C supports 64-bit/V9 ABI" | ||
602 | echo " and wish to build 64-bit library, then you have to" | ||
603 | echo " invoke './Configure solaris64-sparcv9-gcc' *manually*." | ||
604 | if [ "$TEST" = "false" ]; then | ||
605 | echo " You have about 5 seconds to press Ctrl-C to abort." | ||
606 | (stty -icanon min 0 time 50; read waste) < /dev/tty | ||
607 | fi | ||
608 | fi | ||
469 | fi | 609 | fi |
470 | OUT="solaris-sparcv9-$CC" ;; | 610 | ;; |
471 | sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;; | 611 | sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;; |
472 | sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;; | 612 | sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;; |
473 | sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;; | 613 | sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;; |
@@ -485,7 +625,15 @@ case "$GUESSOS" in | |||
485 | vax*-*-openbsd) OUT="OpenBSD-vax" ;; | 625 | vax*-*-openbsd) OUT="OpenBSD-vax" ;; |
486 | *-*-openbsd) OUT="OpenBSD" ;; | 626 | *-*-openbsd) OUT="OpenBSD" ;; |
487 | *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;; | 627 | *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;; |
488 | *-*-osf) OUT="alpha-cc" ;; | 628 | *-*-osf) OUT="alphaold-cc" ;; |
629 | *-*-tru64) OUT="alpha-cc" ;; | ||
630 | *-*-OpenUNIX*) | ||
631 | if [ "$CC" = "gcc" ]; then | ||
632 | OUT="OpenUNIX-8-gcc" | ||
633 | else | ||
634 | OUT="OpenUNIX-8" | ||
635 | fi | ||
636 | ;; | ||
489 | *-*-unixware7) OUT="unixware-7" ;; | 637 | *-*-unixware7) OUT="unixware-7" ;; |
490 | *-*-UnixWare7) OUT="unixware-7" ;; | 638 | *-*-UnixWare7) OUT="unixware-7" ;; |
491 | *-*-Unixware7) OUT="unixware-7" ;; | 639 | *-*-Unixware7) OUT="unixware-7" ;; |
@@ -498,13 +646,49 @@ case "$GUESSOS" in | |||
498 | BS2000-siemens-sysv4) OUT="BS2000-OSD" ;; | 646 | BS2000-siemens-sysv4) OUT="BS2000-OSD" ;; |
499 | RM*-siemens-sysv4) OUT="ReliantUNIX" ;; | 647 | RM*-siemens-sysv4) OUT="ReliantUNIX" ;; |
500 | *-siemens-sysv4) OUT="SINIX" ;; | 648 | *-siemens-sysv4) OUT="SINIX" ;; |
501 | *-hpux1*) OUT="hpux-parisc-$CC" | 649 | *-hpux1*) |
502 | options="$options -D_REENTRANT" ;; | 650 | OUT="hpux-parisc-$CC" |
651 | KERNEL_BITS=`(getconf KERNEL_BITS) 2>/dev/null` | ||
652 | KERNEL_BITS=${KERNEL_BITS:-32} | ||
653 | CPU_VERSION=`(getconf CPU_VERSION) 2>/dev/null` | ||
654 | CPU_VERSION=${CPU_VERSION:-0} | ||
655 | # See <sys/unistd.h> for further info on CPU_VERSION. | ||
656 | if [ $CPU_VERSION -ge 768 ]; then # IA-64 CPU | ||
657 | echo "NOTICE! 64-bit is the only ABI currently operational on HP-UXi." | ||
658 | echo " Post request to openssl-dev@openssl.org for 32-bit support." | ||
659 | if [ "$TEST" = "false" ]; then | ||
660 | (stty -icanon min 0 time 50; read waste) < /dev/tty | ||
661 | fi | ||
662 | OUT="hpux64-ia64-cc" | ||
663 | elif [ $CPU_VERSION -ge 532 ]; then # PA-RISC 2.x CPU | ||
664 | if [ "$CC" = "cc" ]; then | ||
665 | OUT="hpux-parisc2-cc" # can't we have hpux-parisc2-gcc? | ||
666 | fi | ||
667 | if [ $KERNEL_BITS -eq 64 -a "$CC" = "cc" ]; then | ||
668 | echo "WARNING! If you wish to build 64-bit library then you have to" | ||
669 | echo " invoke './Configure hpux64-parisc2-cc' *manually*." | ||
670 | if [ "$TEST" = "false" ]; then | ||
671 | echo " You have about 5 seconds to press Ctrl-C to abort." | ||
672 | (stty -icanon min 0 time 50; read waste) < /dev/tty | ||
673 | fi | ||
674 | fi | ||
675 | elif [ $CPU_VERSION -ge 528 ]; then # PA-RISC 1.1+ CPU | ||
676 | : | ||
677 | elif [ $CPU_VERSION -ge 523 ]; then # PA-RISC 1.0 CPU | ||
678 | : | ||
679 | else # Motorola(?) CPU | ||
680 | OUT="hpux-$CC" | ||
681 | fi | ||
682 | options="$options -D_REENTRANT" ;; | ||
503 | *-hpux) OUT="hpux-parisc-$CC" ;; | 683 | *-hpux) OUT="hpux-parisc-$CC" ;; |
504 | # these are all covered by the catchall below | 684 | # these are all covered by the catchall below |
505 | # *-aix) OUT="aix-$CC" ;; | 685 | # *-aix) OUT="aix-$CC" ;; |
506 | # *-dgux) OUT="dgux" ;; | 686 | # *-dgux) OUT="dgux" ;; |
507 | mips-sony-newsos4) OUT="newsos4-gcc" ;; | 687 | mips-sony-newsos4) OUT="newsos4-gcc" ;; |
688 | *-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;; | ||
689 | *-*-cygwin) OUT="Cygwin" ;; | ||
690 | t3e-cray-unicosmk) OUT="cray-t3e" ;; | ||
691 | j90-cray-unicos) OUT="cray-j90" ;; | ||
508 | *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; | 692 | *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; |
509 | esac | 693 | esac |
510 | 694 | ||
@@ -539,7 +723,7 @@ case "$GUESSOS" in | |||
539 | i386-*) options="$options 386" ;; | 723 | i386-*) options="$options 386" ;; |
540 | esac | 724 | esac |
541 | 725 | ||
542 | for i in bf cast des dh dsa hmac md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa sha | 726 | for i in bf cast des dh dsa ec hmac idea md2 md5 mdc2 rc2 rc4 rc5 rijndael ripemd rsa sha |
543 | do | 727 | do |
544 | if [ ! -d crypto/$i ] | 728 | if [ ! -d crypto/$i ] |
545 | then | 729 | then |
@@ -547,6 +731,27 @@ do | |||
547 | fi | 731 | fi |
548 | done | 732 | done |
549 | 733 | ||
734 | # Discover Kerberos 5 (since it's still a prototype, we don't | ||
735 | # do any guesses yet, that's why this section is commented away. | ||
736 | #if [ -d /usr/kerberos ]; then | ||
737 | # krb5_dir=/usr/kerberos | ||
738 | # if [ \( -f $krb5_dir/lib/libgssapi_krb5.a -o -f $krb5_dir/lib/libgssapi_krb5.so* \)\ | ||
739 | # -a \( -f $krb5_dir/lib/libkrb5.a -o -f $krb5_dir/lib/libkrb5.so* \)\ | ||
740 | # -a \( -f $krb5_dir/lib/libcom_err.a -o -f $krb5_dir/lib/libcom_err.so* \)\ | ||
741 | # -a \( -f $krb5_dir/lib/libk5crypto.a -o -f $krb5_dir/lib/libk5crypto.so* \)\ | ||
742 | # -a \( -f $krb5_dir/include/krb5.h \) ]; then | ||
743 | # options="$options --with-krb5-flavor=MIT" | ||
744 | # fi | ||
745 | #elif [ -d /usr/heimdal ]; then | ||
746 | # krb5_dir=/usr/heimdal | ||
747 | # if [ \( -f $krb5_dir/lib/libgssapi.a -o -f $krb5_dir/lib/libgssapi.so* \)\ | ||
748 | # -a \( -f $krb5_dir/lib/libkrb5.a -o -f $krb5_dir/lib/libkrb5.so* \)\ | ||
749 | # -a \( -f $krb5_dir/lib/libcom_err.a -o -f $krb5_dir/lib/libcom_err.so* \)\ | ||
750 | # -a \( -f $krb5_dir/include/krb5.h \) ]; then | ||
751 | # options="$options --with-krb5-flavor=Heimdal" | ||
752 | # fi | ||
753 | #fi | ||
754 | |||
550 | if [ -z "$OUT" ]; then | 755 | if [ -z "$OUT" ]; then |
551 | OUT="$CC" | 756 | OUT="$CC" |
552 | fi | 757 | fi |