Deleted Added
full compact
config (76866) config (89837)
1#!/bin/sh
2#
3# OpenSSL config: determine the operating system and run ./Configure
4#
5# "config -h" for usage information.
6#
7# this is a merge of minarch and GuessOS from the Apache Group.
8# Originally written by Tim Hudson <tjh@cryptsoft.com>.

--- 54 unchanged lines hidden (view full) ---

63 echo "${MACHINE}-whatever-unixware213"; exit 0
64 else
65 echo "${MACHINE}-whatever-unixware2"; exit 0
66 fi
67 ;;
68 4.2)
69 echo "whatever-whatever-unixware1"; exit 0
70 ;;
1#!/bin/sh
2#
3# OpenSSL config: determine the operating system and run ./Configure
4#
5# "config -h" for usage information.
6#
7# this is a merge of minarch and GuessOS from the Apache Group.
8# Originally written by Tim Hudson <tjh@cryptsoft.com>.

--- 54 unchanged lines hidden (view full) ---

63 echo "${MACHINE}-whatever-unixware213"; exit 0
64 else
65 echo "${MACHINE}-whatever-unixware2"; exit 0
66 fi
67 ;;
68 4.2)
69 echo "whatever-whatever-unixware1"; exit 0
70 ;;
71 OpenUNIX)
72 if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x8" ]; then
73 echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0
74 fi
75 ;;
71 5)
72 if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then
73 echo "${MACHINE}-sco-unixware7"; exit 0
74 fi
75 ;;
76 esac
77 fi
78fi

--- 111 unchanged lines hidden (view full) ---

190 NetBSD:*)
191 echo "${MACHINE}-whatever-netbsd"; exit 0
192 ;;
193
194 OpenBSD:*)
195 echo "${MACHINE}-whatever-openbsd"; exit 0
196 ;;
197
76 5)
77 if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then
78 echo "${MACHINE}-sco-unixware7"; exit 0
79 fi
80 ;;
81 esac
82 fi
83fi

--- 111 unchanged lines hidden (view full) ---

195 NetBSD:*)
196 echo "${MACHINE}-whatever-netbsd"; exit 0
197 ;;
198
199 OpenBSD:*)
200 echo "${MACHINE}-whatever-openbsd"; exit 0
201 ;;
202
203 OpenUNIX:*)
204 echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0
205 ;;
206
198 OSF1:*:*:*alpha*)
207 OSF1:*:*:*alpha*)
199 echo "${MACHINE}-dec-osf"; exit 0
208 OSFMAJOR=`echo ${RELEASE}| sed -e 's/^V\([0-9]*\)\..*$/\1/'`
209 case "$OSFMAJOR" in
210 4|5)
211 echo "${MACHINE}-dec-tru64"; exit 0
212 ;;
213 1|2|3)
214 echo "${MACHINE}-dec-osf"; exit 0
215 ;;
216 *)
217 echo "${MACHINE}-dec-osf"; exit 0
218 ;;
219 esac
200 ;;
201
202 QNX:*)
220 ;;
221
222 QNX:*)
203 case "$VERSION" in
223 case "$RELEASE" in
204 4*)
205 echo "${MACHINE}-whatever-qnx4"
206 ;;
224 4*)
225 echo "${MACHINE}-whatever-qnx4"
226 ;;
227 6*)
228 echo "${MACHINE}-whatever-qnx6"
229 ;;
207 *)
208 echo "${MACHINE}-whatever-qnx"
209 ;;
210 esac
211 exit 0
212 ;;
213
214 Paragon*:*:*:*)
215 echo "i860-intel-osf1"; exit 0
216 ;;
217
218 Rhapsody:*)
219 echo "ppc-apple-rhapsody"; exit 0
220 ;;
221
230 *)
231 echo "${MACHINE}-whatever-qnx"
232 ;;
233 esac
234 exit 0
235 ;;
236
237 Paragon*:*:*:*)
238 echo "i860-intel-osf1"; exit 0
239 ;;
240
241 Rhapsody:*)
242 echo "ppc-apple-rhapsody"; exit 0
243 ;;
244
245 Darwin:*)
246 echo "ppc-apple-darwin"; exit 0
247 ;;
248
222 SunOS:5.*)
223 echo "${MACHINE}-whatever-solaris2"; exit 0
224 ;;
225
226 SunOS:*)
227 echo "${MACHINE}-sun-sunos4"; exit 0
228 ;;
229

--- 36 unchanged lines hidden (view full) ---

266 ConvexOS:*:11.0:*)
267 echo "${MACHINE}-v11-${SYSTEM}"; exit 0;
268 ;;
269
270 NEWS-OS:4.*)
271 echo "mips-sony-newsos4"; exit 0;
272 ;;
273
249 SunOS:5.*)
250 echo "${MACHINE}-whatever-solaris2"; exit 0
251 ;;
252
253 SunOS:*)
254 echo "${MACHINE}-sun-sunos4"; exit 0
255 ;;
256

--- 36 unchanged lines hidden (view full) ---

293 ConvexOS:*:11.0:*)
294 echo "${MACHINE}-v11-${SYSTEM}"; exit 0;
295 ;;
296
297 NEWS-OS:4.*)
298 echo "mips-sony-newsos4"; exit 0;
299 ;;
300
301 CYGWIN*)
302 echo "${MACHINE}-whatever-cygwin32"; exit 0
303 ;;
304
274esac
275
276#
277# Ugg. These are all we can determine by what we know about
278# the output of uname. Be more creative:
279#
280
281# Do the Apollo stuff first. Here, we just simply assume

--- 148 unchanged lines hidden (view full) ---

430 if [ "$CC" = "gcc" ]; then
431 case ${ISA:-generic} in
432 EV5|EV45) options="$options -mcpu=ev5";;
433 EV56|PCA56) options="$options -mcpu=ev56";;
434 EV6|EV67|PCA57) options="$options -mcpu=ev6";;
435 esac
436 fi
437 ;;
305esac
306
307#
308# Ugg. These are all we can determine by what we know about
309# the output of uname. Be more creative:
310#
311
312# Do the Apollo stuff first. Here, we just simply assume

--- 148 unchanged lines hidden (view full) ---

461 if [ "$CC" = "gcc" ]; then
462 case ${ISA:-generic} in
463 EV5|EV45) options="$options -mcpu=ev5";;
464 EV56|PCA56) options="$options -mcpu=ev56";;
465 EV6|EV67|PCA57) options="$options -mcpu=ev6";;
466 esac
467 fi
468 ;;
438 mips-*-linux?) OUT="linux-mips" ;;
469 mips-*-linux?)
470 cat >dummy.c <<EOF
471#include <stdio.h> /* for printf() prototype */
472 int main (argc, argv) int argc; char *argv[]; {
473#ifdef __MIPSEB__
474 printf ("linux-%s\n", argv[1]);
475#endif
476#ifdef __MIPSEL__
477 printf ("linux-%sel\n", argv[1]);
478#endif
479 return 0;
480}
481EOF
482 ${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}`
483 rm dummy dummy.c
484 ;;
439 ppc-*-linux2) OUT="linux-ppc" ;;
440 m68k-*-linux*) OUT="linux-m68k" ;;
441 ia64-*-linux?) OUT="linux-ia64" ;;
442 ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
485 ppc-*-linux2) OUT="linux-ppc" ;;
486 m68k-*-linux*) OUT="linux-m68k" ;;
487 ia64-*-linux?) OUT="linux-ia64" ;;
488 ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
489 ppc-apple-darwin) OUT="darwin-ppc-cc" ;;
443 sparc64-*-linux2)
444 #Before we can uncomment following lines we have to wait at least
445 #till 64-bit glibc for SPARC is operational:-(
446 #echo "WARNING! If you wish to build 64-bit library, then you have to"
447 #echo " invoke './Configure linux64-sparcv9' *manually*."
448 #echo " Type return if you want to continue, Ctrl-C to abort."
449 #read waste < /dev/tty
450 OUT="linux-sparcv9" ;;

--- 29 unchanged lines hidden (view full) ---

480 *86*-*-netbsd) OUT="NetBSD-x86" ;;
481 sun3*-*-netbsd) OUT="NetBSD-m68" ;;
482 *-*-netbsd) OUT="NetBSD-sparc" ;;
483 *86*-*-openbsd) OUT="OpenBSD-x86" ;;
484 alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
485 pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
486 *-*-openbsd) OUT="OpenBSD" ;;
487 *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;;
490 sparc64-*-linux2)
491 #Before we can uncomment following lines we have to wait at least
492 #till 64-bit glibc for SPARC is operational:-(
493 #echo "WARNING! If you wish to build 64-bit library, then you have to"
494 #echo " invoke './Configure linux64-sparcv9' *manually*."
495 #echo " Type return if you want to continue, Ctrl-C to abort."
496 #read waste < /dev/tty
497 OUT="linux-sparcv9" ;;

--- 29 unchanged lines hidden (view full) ---

527 *86*-*-netbsd) OUT="NetBSD-x86" ;;
528 sun3*-*-netbsd) OUT="NetBSD-m68" ;;
529 *-*-netbsd) OUT="NetBSD-sparc" ;;
530 *86*-*-openbsd) OUT="OpenBSD-x86" ;;
531 alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
532 pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
533 *-*-openbsd) OUT="OpenBSD" ;;
534 *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;;
488 *-*-osf) OUT="alpha-cc" ;;
535 *-*-osf) OUT="alphaold-cc" ;;
536 *-*-tru64) OUT="alpha-cc" ;;
537 *-*-OpenUNIX*)
538 if [ "$CC" = "gcc" ]; then
539 OUT="OpenUNIX-8-gcc"
540 else
541 OUT="OpenUNIX-8"
542 fi
543 ;;
489 *-*-unixware7) OUT="unixware-7" ;;
490 *-*-UnixWare7) OUT="unixware-7" ;;
491 *-*-Unixware7) OUT="unixware-7" ;;
492 *-*-unixware20*) OUT="unixware-2.0" ;;
493 *-*-unixware21*) OUT="unixware-2.1" ;;
494 *-*-UnixWare20*) OUT="unixware-2.0" ;;
495 *-*-UnixWare21*) OUT="unixware-2.1" ;;
496 *-*-Unixware20*) OUT="unixware-2.0" ;;
497 *-*-Unixware21*) OUT="unixware-2.1" ;;
498 BS2000-siemens-sysv4) OUT="BS2000-OSD" ;;
499 RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
500 *-siemens-sysv4) OUT="SINIX" ;;
501 *-hpux1*) OUT="hpux-parisc-$CC"
502 options="$options -D_REENTRANT" ;;
503 *-hpux) OUT="hpux-parisc-$CC" ;;
504 # these are all covered by the catchall below
505 # *-aix) OUT="aix-$CC" ;;
506 # *-dgux) OUT="dgux" ;;
507 mips-sony-newsos4) OUT="newsos4-gcc" ;;
544 *-*-unixware7) OUT="unixware-7" ;;
545 *-*-UnixWare7) OUT="unixware-7" ;;
546 *-*-Unixware7) OUT="unixware-7" ;;
547 *-*-unixware20*) OUT="unixware-2.0" ;;
548 *-*-unixware21*) OUT="unixware-2.1" ;;
549 *-*-UnixWare20*) OUT="unixware-2.0" ;;
550 *-*-UnixWare21*) OUT="unixware-2.1" ;;
551 *-*-Unixware20*) OUT="unixware-2.0" ;;
552 *-*-Unixware21*) OUT="unixware-2.1" ;;
553 BS2000-siemens-sysv4) OUT="BS2000-OSD" ;;
554 RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
555 *-siemens-sysv4) OUT="SINIX" ;;
556 *-hpux1*) OUT="hpux-parisc-$CC"
557 options="$options -D_REENTRANT" ;;
558 *-hpux) OUT="hpux-parisc-$CC" ;;
559 # these are all covered by the catchall below
560 # *-aix) OUT="aix-$CC" ;;
561 # *-dgux) OUT="dgux" ;;
562 mips-sony-newsos4) OUT="newsos4-gcc" ;;
563 *-*-cygwin32) OUT="CygWin32"
564 options="$options no-threads no-asm" ;;
508 *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
509esac
510
511# See whether we can compile Atalla support
512if [ -f /usr/include/atasi.h ]
513then
514 options="$options -DATALLA"
515fi

--- 12 unchanged lines hidden (view full) ---

528 sleep 5
529 OUT=linux-sparcv8
530fi
531
532case "$GUESSOS" in
533 i386-*) options="$options 386" ;;
534esac
535
565 *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
566esac
567
568# See whether we can compile Atalla support
569if [ -f /usr/include/atasi.h ]
570then
571 options="$options -DATALLA"
572fi

--- 12 unchanged lines hidden (view full) ---

585 sleep 5
586 OUT=linux-sparcv8
587fi
588
589case "$GUESSOS" in
590 i386-*) options="$options 386" ;;
591esac
592
536for i in bf cast des dh dsa hmac md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa sha
593for i in bf cast des dh dsa hmac idea md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa sha
537do
538 if [ ! -d crypto/$i ]
539 then
540 options="$options no-$i"
541 fi
542done
543
544if [ -z "$OUT" ]; then

--- 52 unchanged lines hidden ---
594do
595 if [ ! -d crypto/$i ]
596 then
597 options="$options no-$i"
598 fi
599done
600
601if [ -z "$OUT" ]; then

--- 52 unchanged lines hidden ---