~ubuntu-branches/ubuntu/utopic/openssl/utopic

« back to all changes in this revision

Viewing changes to config

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2011-04-02 13:19:19 UTC
  • mfrom: (1.2.1 upstream) (11.2.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20110402131919-anszuslper64ey9e
Tags: 1.0.0d-1
* New upstream version
  - Fixes CVE-2011-0014
* Make libssl-doc Replaces/Breaks with old libssl-dev packages
  (Closes: #607609)
* Only export the symbols we should, instead of all.
* Add symbol file.
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
for i
30
30
do
31
31
case "$i" in 
32
 
-d) PREFIX="debug-";;
 
32
-d*) PREFIX="debug-";;
33
33
-t*) TEST="true";;
34
34
-h*) TEST="true"; cat <<EOF
35
35
Usage: config [options]
122
122
        echo "${MACHINE}-ibm-aix3"; exit 0
123
123
        ;;
124
124
 
 
125
    BeOS:*:BePC)
 
126
    if [ -e /boot/develop/headers/be/bone ]; then
 
127
                echo "beos-x86-bone"; exit 0
 
128
        else
 
129
                echo "beos-x86-r5"; exit 0
 
130
        fi
 
131
        ;;
 
132
 
125
133
    dgux:*)
126
134
        echo "${MACHINE}-dg-dgux"; exit 0
127
135
        ;;
270
278
                echo "ppc-apple-darwin${VERSION}"
271
279
                ;;
272
280
            *)
273
 
                echo "i386-apple-darwin${VERSION}"
 
281
                echo "i686-apple-darwin${VERSION}"
274
282
                ;;
275
283
        esac
276
284
        exit 0
488
496
# script above so we end up with values in vars but that would take
489
497
# more time that I want to waste at the moment
490
498
case "$GUESSOS" in
 
499
  uClinux*64*)
 
500
    OUT=uClinux-dist64
 
501
        ;;
 
502
  uClinux*)
 
503
    OUT=uClinux-dist
 
504
        ;;
491
505
  mips2-sgi-irix)
492
506
        CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
493
507
        CPU=${CPU:-0}
523
537
        OUT="irix-mips3-$CC"
524
538
        ;;
525
539
  ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
526
 
  ppc-apple-darwin*) OUT="darwin-ppc-cc" ;;
527
 
  i386-apple-darwin*) OUT="darwin-i386-cc" ;;
 
540
  ppc-apple-darwin*)
 
541
        ISA64=`(sysctl -n hw.optional.64bitops) 2>/dev/null`
 
542
        if [ "$ISA64" = "1" ]; then
 
543
            echo "WARNING! If you wish to build 64-bit library, then you have to"
 
544
            echo "         invoke './Configure darwin64-ppc-cc' *manually*."
 
545
            if [ "$TEST" = "false" -a -t 1 ]; then
 
546
              echo "         You have about 5 seconds to press Ctrl-C to abort."
 
547
              (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1
 
548
            fi
 
549
        fi
 
550
        OUT="darwin-ppc-cc" ;;
 
551
  i?86-apple-darwin*)
 
552
        ISA64=`(sysctl -n hw.optional.x86_64) 2>/dev/null`
 
553
        if [ "$ISA64" = "1" ]; then
 
554
            echo "WARNING! If you wish to build 64-bit library, then you have to"
 
555
            echo "         invoke './Configure darwin64-x86_64-cc' *manually*."
 
556
            if [ "$TEST" = "false" -a -t 1 ]; then
 
557
              echo "         You have about 5 seconds to press Ctrl-C to abort."
 
558
              (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1
 
559
            fi
 
560
        fi
 
561
        OUT="darwin-i386-cc" ;;
528
562
  alpha-*-linux2)
529
563
        ISA=`awk '/cpu model/{print$4;exit(0);}' /proc/cpuinfo`
530
564
        case ${ISA:-generic} in
589
623
 
590
624
        options="$options -DB_ENDIAN -mschedule=$CPUSCHEDULE -march=$CPUARCH"
591
625
        OUT="linux-generic32" ;;
592
 
  arm*b-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
593
 
  arm*l-*-linux2) OUT="linux-generic32"; options="$options -DL_ENDIAN" ;;
 
626
  armv[1-3]*-*-linux2) OUT="linux-generic32" ;;
 
627
  arm*-*-linux2) OUT="linux-armv4" ;;
594
628
  sh*b-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
595
629
  sh*-*-linux2)  OUT="linux-generic32"; options="$options -DL_ENDIAN" ;;
596
630
  m68k*-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
597
 
  s390-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN -DNO_ASM" ;;
598
 
  s390x-*-linux2) OUT="linux-generic64"; options="$options -DB_ENDIAN" ;;
 
631
  s390-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
 
632
  s390x-*-linux2) OUT="linux-s390x" ;;
599
633
  x86_64-*-linux?) OUT="linux-x86_64" ;;
600
634
  *86-*-linux2) OUT="linux-elf"
601
635
        if [ "$GCCVER" -gt 28 ]; then
773
807
  t3e-cray-unicosmk) OUT="cray-t3e" ;;
774
808
  j90-cray-unicos) OUT="cray-j90" ;;
775
809
  nsr-tandem-nsk) OUT="tandem-c89" ;;
 
810
  beos-*) OUT="$GUESSOS" ;;
776
811
  x86pc-*-qnx6) OUT="QNX6-i386" ;;
777
812
  *-*-qnx6) OUT="QNX6" ;;
778
813
  *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;