diff options
Diffstat (limited to 'src/lib/libssl/src/config')
-rw-r--r-- | src/lib/libssl/src/config | 140 |
1 files changed, 95 insertions, 45 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config index 25a3703c1f..0715d378d9 100644 --- a/src/lib/libssl/src/config +++ b/src/lib/libssl/src/config | |||
@@ -23,6 +23,7 @@ | |||
23 | PREFIX="" | 23 | PREFIX="" |
24 | SUFFIX="" | 24 | SUFFIX="" |
25 | TEST="false" | 25 | TEST="false" |
26 | EXE="" | ||
26 | 27 | ||
27 | # pick up any command line args to config | 28 | # pick up any command line args to config |
28 | for i | 29 | for i |
@@ -110,16 +111,16 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
110 | echo "m68k-apple-aux3"; exit 0 | 111 | echo "m68k-apple-aux3"; exit 0 |
111 | ;; | 112 | ;; |
112 | 113 | ||
113 | AIX:[3456789]:4:*) | 114 | AIX:[3-9]:4:*) |
114 | echo "${MACHINE}-ibm-aix43"; exit 0 | 115 | echo "${MACHINE}-ibm-aix"; exit 0 |
115 | ;; | 116 | ;; |
116 | 117 | ||
117 | AIX:*:[56789]:*) | 118 | AIX:*:[5-9]:*) |
118 | echo "${MACHINE}-ibm-aix43"; exit 0 | 119 | echo "${MACHINE}-ibm-aix"; exit 0 |
119 | ;; | 120 | ;; |
120 | 121 | ||
121 | AIX:*) | 122 | AIX:*) |
122 | echo "${MACHINE}-ibm-aix"; exit 0 | 123 | echo "${MACHINE}-ibm-aix3"; exit 0 |
123 | ;; | 124 | ;; |
124 | 125 | ||
125 | dgux:*) | 126 | dgux:*) |
@@ -288,6 +289,14 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
288 | echo "${MACHINE}-whatever-sysv4"; exit 0 | 289 | echo "${MACHINE}-whatever-sysv4"; exit 0 |
289 | ;; | 290 | ;; |
290 | 291 | ||
292 | VOS:*:*:i786) | ||
293 | echo "i386-stratus-vos"; exit 0 | ||
294 | ;; | ||
295 | |||
296 | VOS:*:*:*) | ||
297 | echo "hppa1.1-stratus-vos"; exit 0 | ||
298 | ;; | ||
299 | |||
291 | *:4*:R4*:m88k) | 300 | *:4*:R4*:m88k) |
292 | echo "${MACHINE}-whatever-sysv4"; exit 0 | 301 | echo "${MACHINE}-whatever-sysv4"; exit 0 |
293 | ;; | 302 | ;; |
@@ -328,6 +337,9 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
328 | echo "mips-sony-newsos4"; exit 0; | 337 | echo "mips-sony-newsos4"; exit 0; |
329 | ;; | 338 | ;; |
330 | 339 | ||
340 | MINGW*) | ||
341 | echo "${MACHINE}-whatever-mingw"; echo 0; | ||
342 | ;; | ||
331 | CYGWIN*) | 343 | CYGWIN*) |
332 | case "$RELEASE" in | 344 | case "$RELEASE" in |
333 | [bB]*|1.0|1.[12].*) | 345 | [bB]*|1.0|1.[12].*) |
@@ -433,7 +445,7 @@ if [ "$SYSTEM" = "SunOS" ]; then | |||
433 | egrep -e '^cc: .* C [0-9]\.[0-9]' | \ | 445 | egrep -e '^cc: .* C [0-9]\.[0-9]' | \ |
434 | sed 's/.* C \([0-9]\)\.\([0-9]\).*/\1\2/'` | 446 | sed 's/.* C \([0-9]\)\.\([0-9]\).*/\1\2/'` |
435 | CCVER=${CCVER:-0} | 447 | CCVER=${CCVER:-0} |
436 | if [ $CCVER -gt 40 ]; then | 448 | if [ $MACHINE != i86pc -a $CCVER -gt 40 ]; then |
437 | CC=cc # overrides gcc!!! | 449 | CC=cc # overrides gcc!!! |
438 | if [ $CCVER -eq 50 ]; then | 450 | if [ $CCVER -eq 50 ]; then |
439 | echo "WARNING! Detected WorkShop C 5.0. Do make sure you have" | 451 | echo "WARNING! Detected WorkShop C 5.0. Do make sure you have" |
@@ -482,29 +494,29 @@ case "$GUESSOS" in | |||
482 | OUT="irix-$CC" | 494 | OUT="irix-$CC" |
483 | ;; | 495 | ;; |
484 | mips3-sgi-irix) | 496 | mips3-sgi-irix) |
485 | CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` | 497 | #CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` |
486 | CPU=${CPU:-0} | 498 | #CPU=${CPU:-0} |
487 | if [ $CPU -ge 5000 ]; then | 499 | #if [ $CPU -ge 5000 ]; then |
488 | options="$options -mips4" | 500 | # options="$options -mips4" |
489 | else | 501 | #else |
490 | options="$options -mips3" | 502 | # options="$options -mips3" |
491 | fi | 503 | #fi |
492 | OUT="irix-mips3-$CC" | 504 | OUT="irix-mips3-$CC" |
493 | ;; | 505 | ;; |
494 | mips4-sgi-irix64) | 506 | mips4-sgi-irix64) |
495 | echo "WARNING! If you wish to build 64-bit library, then you have to" | 507 | echo "WARNING! If you wish to build 64-bit library, then you have to" |
496 | echo " invoke './Configure irix64-mips4-$CC' *manually*." | 508 | echo " invoke './Configure irix64-mips4-$CC' *manually*." |
497 | if [ "$TEST" = "false" ]; then | 509 | if [ "$TEST" = "false" -a -t 1 ]; then |
498 | echo " You have about 5 seconds to press Ctrl-C to abort." | 510 | echo " You have about 5 seconds to press Ctrl-C to abort." |
499 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 511 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 |
500 | fi | 512 | fi |
501 | CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` | 513 | #CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` |
502 | CPU=${CPU:-0} | 514 | #CPU=${CPU:-0} |
503 | if [ $CPU -ge 5000 ]; then | 515 | #if [ $CPU -ge 5000 ]; then |
504 | options="$options -mips4" | 516 | # options="$options -mips4" |
505 | else | 517 | #else |
506 | options="$options -mips3" | 518 | # options="$options -mips3" |
507 | fi | 519 | #fi |
508 | OUT="irix-mips3-$CC" | 520 | OUT="irix-mips3-$CC" |
509 | ;; | 521 | ;; |
510 | alpha-*-linux2) | 522 | alpha-*-linux2) |
@@ -538,9 +550,14 @@ EOF | |||
538 | rm dummy dummy.c | 550 | rm dummy dummy.c |
539 | ;; | 551 | ;; |
540 | ppc64-*-linux2) | 552 | ppc64-*-linux2) |
541 | #Use the standard target for PPC architecture until we create a | 553 | echo "WARNING! If you wish to build 64-bit library, then you have to" |
542 | #special one for the 64bit architecture. | 554 | echo " invoke './Configure linux-ppc64' *manually*." |
543 | OUT="linux-ppc" ;; | 555 | if [ "$TEST" = "false" -a -t 1 ]; then |
556 | echo " You have about 5 seconds to press Ctrl-C to abort." | ||
557 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 | ||
558 | fi | ||
559 | OUT="linux-ppc" | ||
560 | ;; | ||
544 | ppc-*-linux2) OUT="linux-ppc" ;; | 561 | ppc-*-linux2) OUT="linux-ppc" ;; |
545 | m68k-*-linux*) OUT="linux-m68k" ;; | 562 | m68k-*-linux*) OUT="linux-m68k" ;; |
546 | ia64-*-linux?) OUT="linux-ia64" ;; | 563 | ia64-*-linux?) OUT="linux-ia64" ;; |
@@ -551,9 +568,9 @@ EOF | |||
551 | echo "WARNING! If you *know* that your GNU C supports 64-bit/V9 ABI" | 568 | echo "WARNING! If you *know* that your GNU C supports 64-bit/V9 ABI" |
552 | echo " and wish to build 64-bit library, then you have to" | 569 | echo " and wish to build 64-bit library, then you have to" |
553 | echo " invoke './Configure linux64-sparcv9' *manually*." | 570 | echo " invoke './Configure linux64-sparcv9' *manually*." |
554 | if [ "$TEST" = "false" ]; then | 571 | if [ "$TEST" = "false" -a -t 1 ]; then |
555 | echo " You have about 5 seconds to press Ctrl-C to abort." | 572 | echo " You have about 5 seconds to press Ctrl-C to abort." |
556 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 573 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 |
557 | fi | 574 | fi |
558 | OUT="linux-sparcv9" ;; | 575 | OUT="linux-sparcv9" ;; |
559 | sparc-*-linux2) | 576 | sparc-*-linux2) |
@@ -584,7 +601,9 @@ EOF | |||
584 | 601 | ||
585 | options="$options -mschedule=$CPUSCHEDULE -march=$CPUARCH" | 602 | options="$options -mschedule=$CPUSCHEDULE -march=$CPUARCH" |
586 | OUT="linux-parisc" ;; | 603 | OUT="linux-parisc" ;; |
587 | arm*-*-linux2) OUT="linux-elf-arm" ;; | 604 | arm*b-*-linux2) OUT="linux-elf-arm"; options="$options -DB_ENDIAN" ;; |
605 | arm*l-*-linux2) OUT="linux-elf-arm"; options="$options -DL_ENDIAN" ;; | ||
606 | arm*-*-linux2) OUT="linux-elf-arm" ;; | ||
588 | s390-*-linux2) OUT="linux-s390" ;; | 607 | s390-*-linux2) OUT="linux-s390" ;; |
589 | s390x-*-linux?) OUT="linux-s390x" ;; | 608 | s390x-*-linux?) OUT="linux-s390x" ;; |
590 | x86_64-*-linux?) OUT="linux-x86_64" ;; | 609 | x86_64-*-linux?) OUT="linux-x86_64" ;; |
@@ -608,9 +627,9 @@ EOF | |||
608 | if [ "$CC" = "cc" -a $CCVER -ge 50 ]; then | 627 | if [ "$CC" = "cc" -a $CCVER -ge 50 ]; then |
609 | echo "WARNING! If you wish to build 64-bit library, then you have to" | 628 | echo "WARNING! If you wish to build 64-bit library, then you have to" |
610 | echo " invoke './Configure solaris64-sparcv9-cc' *manually*." | 629 | echo " invoke './Configure solaris64-sparcv9-cc' *manually*." |
611 | if [ "$TEST" = "false" ]; then | 630 | if [ "$TEST" = "false" -a -t 1 ]; then |
612 | echo " You have about 5 seconds to press Ctrl-C to abort." | 631 | echo " You have about 5 seconds to press Ctrl-C to abort." |
613 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 632 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 |
614 | fi | 633 | fi |
615 | elif [ "$CC" = "gcc" -a "$GCC_ARCH" = "-m64" ]; then | 634 | elif [ "$CC" = "gcc" -a "$GCC_ARCH" = "-m64" ]; then |
616 | # $GCC_ARCH denotes default ABI chosen by compiler driver | 635 | # $GCC_ARCH denotes default ABI chosen by compiler driver |
@@ -620,17 +639,17 @@ EOF | |||
620 | OUT="solaris64-sparcv9-gcc" | 639 | OUT="solaris64-sparcv9-gcc" |
621 | echo "WARNING! If you wish to build 32-bit library, then you have to" | 640 | echo "WARNING! If you wish to build 32-bit library, then you have to" |
622 | echo " invoke './Configure solaris-sparcv9-gcc' *manually*." | 641 | echo " invoke './Configure solaris-sparcv9-gcc' *manually*." |
623 | if [ "$TEST" = "false" ]; then | 642 | if [ "$TEST" = "false" -a -t 1 ]; then |
624 | echo " You have about 5 seconds to press Ctrl-C to abort." | 643 | echo " You have about 5 seconds to press Ctrl-C to abort." |
625 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 644 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 |
626 | fi | 645 | fi |
627 | elif [ "$GCC_ARCH" = "-m32" ]; then | 646 | elif [ "$GCC_ARCH" = "-m32" ]; then |
628 | echo "NOTICE! If you *know* that your GNU C supports 64-bit/V9 ABI" | 647 | echo "NOTICE! If you *know* that your GNU C supports 64-bit/V9 ABI" |
629 | echo " and wish to build 64-bit library, then you have to" | 648 | echo " and wish to build 64-bit library, then you have to" |
630 | echo " invoke './Configure solaris64-sparcv9-gcc' *manually*." | 649 | echo " invoke './Configure solaris64-sparcv9-gcc' *manually*." |
631 | if [ "$TEST" = "false" ]; then | 650 | if [ "$TEST" = "false" -a -t 1 ]; then |
632 | echo " You have about 5 seconds to press Ctrl-C to abort." | 651 | echo " You have about 5 seconds to press Ctrl-C to abort." |
633 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 652 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 |
634 | fi | 653 | fi |
635 | fi | 654 | fi |
636 | fi | 655 | fi |
@@ -638,7 +657,14 @@ EOF | |||
638 | sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;; | 657 | sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;; |
639 | sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;; | 658 | sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;; |
640 | sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;; | 659 | sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;; |
641 | *86*-*-solaris2) OUT="solaris-x86-$CC" ;; | 660 | *86*-*-solaris2) |
661 | ISA64=`(isalist) 2>/dev/null | grep amd64` | ||
662 | if [ "$ISA64" != "" ]; then | ||
663 | OUT="solaris64-x86_64-$CC" | ||
664 | else | ||
665 | OUT="solaris-x86-$CC" | ||
666 | fi | ||
667 | ;; | ||
642 | *-*-sunos4) OUT="sunos-$CC" ;; | 668 | *-*-sunos4) OUT="sunos-$CC" ;; |
643 | alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;; | 669 | alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;; |
644 | sparc64-*-freebsd*) OUT="FreeBSD-sparc64" ;; | 670 | sparc64-*-freebsd*) OUT="FreeBSD-sparc64" ;; |
@@ -679,6 +705,10 @@ EOF | |||
679 | *-*-UnixWare21*) OUT="unixware-2.1" ;; | 705 | *-*-UnixWare21*) OUT="unixware-2.1" ;; |
680 | *-*-Unixware20*) OUT="unixware-2.0" ;; | 706 | *-*-Unixware20*) OUT="unixware-2.0" ;; |
681 | *-*-Unixware21*) OUT="unixware-2.1" ;; | 707 | *-*-Unixware21*) OUT="unixware-2.1" ;; |
708 | *-*-vos) | ||
709 | options="$options no-threads no-shared no-asm no-dso" | ||
710 | EXE=".pm" | ||
711 | OUT="vos-$CC" ;; | ||
682 | BS2000-siemens-sysv4) OUT="BS2000-OSD" ;; | 712 | BS2000-siemens-sysv4) OUT="BS2000-OSD" ;; |
683 | RM*-siemens-sysv4) OUT="ReliantUNIX" ;; | 713 | RM*-siemens-sysv4) OUT="ReliantUNIX" ;; |
684 | *-siemens-sysv4) OUT="SINIX" ;; | 714 | *-siemens-sysv4) OUT="SINIX" ;; |
@@ -702,9 +732,9 @@ EOF | |||
702 | echo "WARNING! 64-bit ABI is the default configured ABI on HP-UXi." | 732 | echo "WARNING! 64-bit ABI is the default configured ABI on HP-UXi." |
703 | echo " If you wish to build 32-bit library, the you have to" | 733 | echo " If you wish to build 32-bit library, the you have to" |
704 | echo " invoke './Configure hpux-ia64-cc' *manually*." | 734 | echo " invoke './Configure hpux-ia64-cc' *manually*." |
705 | if [ "$TEST" = "false" ]; then | 735 | if [ "$TEST" = "false" -a -t 1 ]; then |
706 | echo " You have about 5 seconds to press Ctrl-C to abort." | 736 | echo " You have about 5 seconds to press Ctrl-C to abort." |
707 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 737 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 |
708 | fi | 738 | fi |
709 | OUT="hpux64-ia64-cc" | 739 | OUT="hpux64-ia64-cc" |
710 | elif [ $CPU_VERSION -ge 532 ]; then # PA-RISC 2.x CPU | 740 | elif [ $CPU_VERSION -ge 532 ]; then # PA-RISC 2.x CPU |
@@ -714,9 +744,9 @@ EOF | |||
714 | if [ $KERNEL_BITS -eq 64 -a "$CC" = "cc" ]; then | 744 | if [ $KERNEL_BITS -eq 64 -a "$CC" = "cc" ]; then |
715 | echo "WARNING! If you wish to build 64-bit library then you have to" | 745 | echo "WARNING! If you wish to build 64-bit library then you have to" |
716 | echo " invoke './Configure hpux64-parisc2-cc' *manually*." | 746 | echo " invoke './Configure hpux64-parisc2-cc' *manually*." |
717 | if [ "$TEST" = "false" ]; then | 747 | if [ "$TEST" = "false" -a -t 1 ]; then |
718 | echo " You have about 5 seconds to press Ctrl-C to abort." | 748 | echo " You have about 5 seconds to press Ctrl-C to abort." |
719 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 749 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 |
720 | fi | 750 | fi |
721 | fi | 751 | fi |
722 | elif [ $CPU_VERSION -ge 528 ]; then # PA-RISC 1.1+ CPU | 752 | elif [ $CPU_VERSION -ge 528 ]; then # PA-RISC 1.1+ CPU |
@@ -728,8 +758,28 @@ EOF | |||
728 | fi | 758 | fi |
729 | options="$options -D_REENTRANT" ;; | 759 | options="$options -D_REENTRANT" ;; |
730 | *-hpux) OUT="hpux-parisc-$CC" ;; | 760 | *-hpux) OUT="hpux-parisc-$CC" ;; |
761 | *-aix) | ||
762 | KERNEL_BITS=`(getconf KERNEL_BITMODE) 2>/dev/null` | ||
763 | KERNEL_BITS=${KERNEL_BITS:-32} | ||
764 | OBJECT_MODE=${OBJECT_MODE:-32} | ||
765 | if [ "$CC" = "gcc" ]; then | ||
766 | OUT="aix-gcc" | ||
767 | elif [ $OBJECT_MODE -eq 64 ]; then | ||
768 | echo 'Your $OBJECT_MODE was found to be set to 64' | ||
769 | OUT="aix64-cc" | ||
770 | else | ||
771 | OUT="aix-cc" | ||
772 | if [ $KERNEL_BITS -eq 64 ]; then | ||
773 | echo "WARNING! If you wish to build 64-bit kit, then you have to" | ||
774 | echo " invoke './Configure aix64-cc' *manually*." | ||
775 | if [ "$TEST" = "false" -a -t 1 ]; then | ||
776 | echo " You have ~5 seconds to press Ctrl-C to abort." | ||
777 | (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1 | ||
778 | fi | ||
779 | fi | ||
780 | fi | ||
781 | ;; | ||
731 | # these are all covered by the catchall below | 782 | # these are all covered by the catchall below |
732 | # *-aix) OUT="aix-$CC" ;; | ||
733 | # *-dgux) OUT="dgux" ;; | 783 | # *-dgux) OUT="dgux" ;; |
734 | mips-sony-newsos4) OUT="newsos4-gcc" ;; | 784 | mips-sony-newsos4) OUT="newsos4-gcc" ;; |
735 | *-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;; | 785 | *-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;; |
@@ -806,8 +856,8 @@ fi | |||
806 | 856 | ||
807 | if [ ".$PERL" = . ] ; then | 857 | if [ ".$PERL" = . ] ; then |
808 | for i in . `echo $PATH | sed 's/:/ /g'`; do | 858 | for i in . `echo $PATH | sed 's/:/ /g'`; do |
809 | if [ -f "$i/perl5" ] ; then | 859 | if [ -f "$i/perl5$EXE" ] ; then |
810 | PERL="$i/perl5" | 860 | PERL="$i/perl5$EXE" |
811 | break; | 861 | break; |
812 | fi; | 862 | fi; |
813 | done | 863 | done |
@@ -815,9 +865,9 @@ fi | |||
815 | 865 | ||
816 | if [ ".$PERL" = . ] ; then | 866 | if [ ".$PERL" = . ] ; then |
817 | for i in . `echo $PATH | sed 's/:/ /g'`; do | 867 | for i in . `echo $PATH | sed 's/:/ /g'`; do |
818 | if [ -f "$i/perl" ] ; then | 868 | if [ -f "$i/perl$EXE" ] ; then |
819 | if "$i/perl" -e 'exit($]<5.0)'; then | 869 | if "$i/perl$EXE" -e 'exit($]<5.0)'; then |
820 | PERL="$i/perl" | 870 | PERL="$i/perl$EXE" |
821 | break; | 871 | break; |
822 | fi; | 872 | fi; |
823 | fi; | 873 | fi; |