config bugs for BSD/OS 4.0

1999-06-11 Thread John R Levine

BSD/OS 4.0 uses ELF objects and the ELF-compatible assembler.  The options
for FreeBSD-ELF work OK for BSD/OS 4, so here are tweaks to the 0.9.3a config
and Configure. 

It turns out that BSD/OS reports that it's an i386 regardless of what the CPU
really is, so I made the script always believe that BSD 4 is running on a 486
or better, since I know of nobody who's still running it on a real 386. 

Regards,
John Levine, [EMAIL PROTECTED], Primary Perpetrator of "The Internet for Dummies",
Information Superhighwayman wanna-be, http://iecc.com/johnl, Sewer Commissioner
Finger for PGP key, f'print = 3A 5B D0 3F D9 A0 6A A4  2D AC 1E 9E A6 36 A3 47 

*** config.orig Thu Jun 10 11:49:36 1999
--- config  Thu Jun 10 12:23:40 1999
***
*** 114,119 
--- 114,123 
echo "${MACHINE}-lynx-lynxos"; exit 0
;;
  
+ BSD/OS:4*:*:*:*)  # BSD/OS always says 386
+   echo "i486-whatever-bsdi4"; exit 0
+   ;;
+ 
  BSD/386:*:*:*486*|BSD/OS:*:*:*:*486*)
echo "i486-whatever-bsdi"; exit 0
;;
***
*** 321,326 
--- 325,331 
alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
*-*-openbsd) OUT="OpenBSD" ;;
+   *86*-bsdi4) OUT="bsdi-elf" ;;
*-*-osf) OUT="alpha-cc" ;;
*-*-unixware*) OUT="unixware-2.0" ;;
RM*-siemens-sysv4) OUT="ReliantUNIX" ;;


*** Configure.orig  Thu Jun 10 11:49:40 1999
--- Configure   Thu Jun 10 12:09:54 1999
***
*** 177,182 
--- 177,183 
  #"FreeBSD",   "gcc:-DTERMIOS -DL_ENDIAN -D_ANSI_SOURCE -fomit-frame-pointer -O3 
-m486 -Wall:(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
  "FreeBSD",  "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 
-Wall:(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_out_asm",
  "FreeBSD-elf",  "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 
-Wall:(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
+ "bsdi-elf",  "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 
+-Wall:(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
  "bsdi-gcc", "gcc:-O3 -ffast-math -DL_ENDIAN -DPERL5 -m486:(unknown)::RSA_LLONG 
$x86_gcc_des $x86_gcc_opts:$x86_bsdi_asm",
  "nextstep",   "cc:-O3 -Wall:(unknown)::BN_LLONG $x86_gcc_des ${x86_gcc_opts}:::",
  # NCR MP-RAS UNIX ver 02.03.01
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: config bugs for BSD/OS 4.0

1999-06-11 Thread Bodo Moeller

On Thu, Jun 10, 1999 at 12:31:16PM -0400, John R Levine wrote:

 BSD/OS 4.0 uses ELF objects and the ELF-compatible assembler.  The options
 for FreeBSD-ELF work OK for BSD/OS 4, so here are tweaks to the 0.9.3a config
 and Configure. 

I added such a configuration some days after 0.9.3a was finished --
but my "config" addition believed the MACHINE name given by uname.

 It turns out that BSD/OS reports that it's an i386 regardless of what the CPU
 really is, so I made the script always believe that BSD 4 is running on a 486
 or better, since I know of nobody who's still running it on a real 386. 

I've changed that now.

 + "bsdi-elf",  "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 
-Wall:(unknown)::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",

I called that one "bsdi-elf-gcc" (because I think that either both
bsdi and bsdi-elf or none of them should have "gcc" in the name,
unless it is the standard compiler for one of them, but not for the
other).

-DTERMIOS is not needed.  My configuration entry also has -DPERL5 in
it -- this is used only in crypto/des/... and I'm not quite sure why
it is there (I copied it from bsdi-gcc), and probably it should be
called differently anyway.  Note that there were changes in the DES
library, so don't waste time looking at the declarations in 0.9.3a's
crypto/des/ directory ...
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]