Separate i386 & mips NetBSD configurations from other BSD ones. Don't assume
authorNiklas Hallqvist <niklas@cygnus>
Sat, 28 Oct 1995 00:34:10 +0000 (00:34 +0000)
committerNiklas Hallqvist <niklas@cygnus>
Sat, 28 Oct 1995 00:34:10 +0000 (00:34 +0000)
DEC is the only thing NetBSD/mips run on.  Add {m68k,ns32k,sparc}-*-netbsd*
configurations.  Add support for m68k4k NetBSD object format.

bfd/configure
bfd/configure.in

index 9ce2cbc1cd3728315ef0e6e41966b6f771c8c703..401236eae1e09e3e1e2469fac419a6687bf0f75b 100755 (executable)
@@ -1001,10 +1001,17 @@ EOF
 EOF
 
        ;;
-  i[345]86-*-bsd* | i[345]86-*-freebsd* | i[345]86-*-netbsd*)
+  i[345]86-*-bsd* | i[345]86-*-freebsd*)
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/i386bsd.h"
+EOF
+
+       ;;
+  i[345]86-*-netbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/i386nbsd.h"
 EOF
 
        ;;
@@ -1052,7 +1059,13 @@ EOF
 EOF
 
        ;;
-  mips-dec-netbsd*)    ;;
+  mips-*-netbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/mipsnbsd.h"
+EOF
+
+       ;;
   mips-dec-*)
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
@@ -1104,6 +1117,13 @@ EOF
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/news.h"
+EOF
+
+       ;;
+  m68*-*-netbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/m68knbsd.h"
 EOF
 
        ;;
@@ -1120,6 +1140,13 @@ EOF
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
 #define TRAD_HEADER "hosts/pc532mach.h"
+EOF
+
+       ;;
+  ns32k-*-netbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/ns32knbsd.h"
 EOF
 
        ;;
@@ -1128,6 +1155,13 @@ EOF
   rs6000-*-*)          COREFILE=rs6000-core.o ;;
   powerpc-*-aix4*)     COREFILE=rs6000-core.o ;;
   powerpc-*-aix*)      COREFILE=rs6000-core.o ;;
+  sparc-*-netbsd*)
+       COREFILE=trad-core.o
+       cat >> confdefs.h <<\EOF
+#define TRAD_HEADER "hosts/sparcnbsd.h"
+EOF
+
+       ;;
   tahoe-*-*)
        COREFILE=trad-core.o
        cat >> confdefs.h <<\EOF
@@ -1178,7 +1212,7 @@ EOF
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1182 "configure"
+#line 1216 "configure"
 #include "confdefs.h"
 #include <sys/procfs.h>
 int main() { return 0; }
@@ -1354,6 +1388,7 @@ do
     m68klynx_aout_vec)         tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;;
     m68klynx_coff_vec)         tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;;
     m68knetbsd_vec)            tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;;
+    m68k4knetbsd_vec)          tb="$tb m68k4knetbsd.o aout32.o stab-syms.o" ;;
     m88kbcs_vec)               tb="$tb coff-m88k.o" ;;
     newsos3_vec)               tb="$tb newsos3.o aout32.o stab-syms.o" ;;
     nlm32_i386_vec)            tb="$tb nlm32-i386.o nlm32.o nlm.o" ;;
index 4121c88797dd578961fc2a485f2768a5a717fe1d..54ba855e8b056ce508b3ee813b76bec9676053ce 100644 (file)
@@ -117,11 +117,17 @@ changequote([,])dnl
        AC_DEFINE(TRAD_HEADER,"hosts/symmetry.h")
        ;;
 changequote(,)dnl
-  i[345]86-*-bsd* | i[345]86-*-freebsd* | i[345]86-*-netbsd*)
+  i[345]86-*-bsd* | i[345]86-*-freebsd*)
 changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/i386bsd.h")
        ;;
+changequote(,)dnl
+  i[345]86-*-netbsd*)
+changequote([,])dnl
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/i386nbsd.h")
+       ;;
 changequote(,)dnl
   i[345]86-esix-sysv3*)
 changequote([,])dnl
@@ -158,7 +164,10 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/mipsmach3.h")
        ;;
-  mips-dec-netbsd*)    ;;
+  mips-*-netbsd*)
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/mipsnbsd.h")
+       ;;
   mips-dec-*)
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/decstation.h")
@@ -192,6 +201,10 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/news.h")
        ;;
+  m68*-*-netbsd*)
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/m68knbsd.h")
+       ;;
   m88*-*-sysv4*)       ;;
   m88*-motorola-sysv*) COREFILE=trad-core.o ;;
   m88*-*-mach3*)
@@ -202,11 +215,19 @@ changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/pc532mach.h")
        ;;
+  ns32k-*-netbsd*)
+       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 ;;
   powerpc-*-aix4*)     COREFILE=rs6000-core.o ;;
   powerpc-*-aix*)      COREFILE=rs6000-core.o ;;
+  sparc-*-netbsd*)
+       COREFILE=trad-core.o
+       AC_DEFINE(TRAD_HEADER,"hosts/sparcnbsd.h")
+       ;;
   tahoe-*-*)
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/tahoe.h")
@@ -399,6 +420,7 @@ do
     m68klynx_aout_vec)         tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;;
     m68klynx_coff_vec)         tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;;
     m68knetbsd_vec)            tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;;
+    m68k4knetbsd_vec)          tb="$tb m68k4knetbsd.o aout32.o stab-syms.o" ;;
     m88kbcs_vec)               tb="$tb coff-m88k.o" ;;
     newsos3_vec)               tb="$tb newsos3.o aout32.o stab-syms.o" ;;
     nlm32_i386_vec)            tb="$tb nlm32-i386.o nlm32.o nlm.o" ;;