Add OpenBSD configuration, it's exactly like NetBSD.
authorniklas <niklas@openbsd.org>
Mon, 8 Jan 1996 22:16:07 +0000 (22:16 +0000)
committerniklas <niklas@openbsd.org>
Mon, 8 Jan 1996 22:16:07 +0000 (22:16 +0000)
gnu/usr.bin/binutils/bfd/config.bfd
gnu/usr.bin/binutils/bfd/configure
gnu/usr.bin/binutils/bfd/configure.host
gnu/usr.bin/binutils/bfd/configure.in

index a03f978..5d93cd6 100644 (file)
@@ -138,6 +138,11 @@ case "${targ}" in
     targ_selvecs=i386bsd_vec
     targ_underscore=yes
     ;;
+  i[345]86-*-openbsd*)
+    targ_defvec=i386netbsd_vec
+    targ_selvecs=i386bsd_vec
+    targ_underscore=yes
+    ;;
   i[345]86-*-netware*)
     targ_defvec=bfd_elf32_i386_vec
     targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
@@ -257,6 +262,16 @@ case "${targ}" in
     targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
     targ_underscore=yes
     ;;
+  m68*-hp*-openbsd*)
+    targ_defvec=m68k4knetbsd_vec
+    targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
+    targ_underscore=yes
+    ;;
+  m68*-*-openbsd*)
+    targ_defvec=m68knetbsd_vec
+    targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
+    targ_underscore=yes
+    ;;
   m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
   m68*-*-bsd* | m68*-*-vsta*)
     targ_defvec=sunos_big_vec
@@ -289,6 +304,10 @@ case "${targ}" in
     targ_defvec=bfd_elf32_littlemips_vec
     targ_selvecs=bfd_elf32_bigmips_vec
     ;;
+  mips-dec-openbsd*)
+    targ_defvec=bfd_elf32_littlemips_vec
+    targ_selvecs=bfd_elf32_bigmips_vec
+    ;;
   mips*-dec-bsd*)
     targ_defvec=aout_mips_little_vec
     targ_underscore=yes
@@ -342,6 +361,10 @@ case "${targ}" in
     targ_defvec=pc532netbsd_vec
     targ_underscore=yes
     ;;
+  ns32k-*-openbsd*)
+    targ_defvec=pc532netbsd_vec
+    targ_underscore=yes
+    ;;
 
   powerpc-*-aix*)
     targ_defvec=rs6000coff_vec
@@ -385,6 +408,10 @@ case "${targ}" in
     targ_defvec=sparcnetbsd_vec
     targ_underscore=yes
     ;;
+  sparc-*-openbsd*)
+    targ_defvec=sparcnetbsd_vec
+    targ_underscore=yes
+    ;;
   sparc-*-solaris2* | sparc-*-sysv4*)
     targ_defvec=bfd_elf32_sparc_vec
     targ_selvecs=sunos_big_vec
index adb5e46..ceb0639 100644 (file)
@@ -1060,6 +1060,13 @@ EOF
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/i386nbsd.h"
+EOF
+
+       ;;
+  i[345]86-*-openbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/i386nbsd.h"
 EOF
 
        ;;
@@ -1118,6 +1125,13 @@ EOF
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/mipsnbsd.h"
+EOF
+
+       ;;
+  mips-*-openbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/mipsnbsd.h"
 EOF
 
        ;;
@@ -1185,6 +1199,13 @@ EOF
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/m68knbsd.h"
+EOF
+
+       ;;
+  m68*-*-openbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/m68knbsd.h"
 EOF
 
        ;;
@@ -1208,6 +1229,13 @@ EOF
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/ns32knbsd.h"
+EOF
+
+       ;;
+  ns32k-*-openbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/ns32knbsd.h"
 EOF
 
        ;;
@@ -1220,6 +1248,13 @@ EOF
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/sparcnbsd.h"
+EOF
+
+       ;;
+  sparc-*-openbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/sparcnbsd.h"
 EOF
 
        ;;
index 41af344..7ea144a 100644 (file)
@@ -54,6 +54,7 @@ i[345]86-*-win32)     test -z "$CC" && CC="i386-win32-gcc -O2"
                        ;;
 
 mips-dec-netbsd*)      ;;
+mips-dec-openbsd*)     ;;
 mips-dec-*)            HDEFINES="-G 4" ;;
 mips-sgi-irix3*)       HDEFINES="-G 4"
                        test -z "$LDFLAGS" && LDFLAGS=-lmalloc
index 8d64901..93b0ca8 100644 (file)
@@ -138,6 +138,12 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/i386nbsd.h")
        ;;
+changequote(,)dnl
+  i[345]86-*-openbsd*)
+changequote([,])dnl
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/i386nbsd.h")
+       ;;
 changequote(,)dnl
   i[345]86-esix-sysv3*)
 changequote([,])dnl
@@ -182,6 +188,10 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/mipsnbsd.h")
        ;;
+  mips-*-openbsd*)
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/mipsnbsd.h")
+       ;;
   mips-dec-*)
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/decstation.h")
@@ -222,6 +232,10 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/m68knbsd.h")
        ;;
+  m68*-*-openbsd*)
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/m68knbsd.h")
+       ;;
   m88*-*-sysv4*)       ;;
   m88*-motorola-sysv*) COREFILE=ptrace-core.o ;;
   m88*-*-mach3*)
@@ -236,6 +250,10 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/ns32knbsd.h")
        ;;
+  ns32k-*-openbsd*)
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/ns32knbsd.h")
+       ;;
   rs6000-*-lynx*)      COREFILE=lynx-core.o ;;
   rs6000-*-aix4*)      COREFILE=rs6000-core.o ;;
   rs6000-*-*)          COREFILE=rs6000-core.o ;;
@@ -245,6 +263,10 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/sparcnbsd.h")
        ;;
+  sparc-*-openbsd*)
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/sparcnbsd.h")
+       ;;
   tahoe-*-*)
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/tahoe.h")