* as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
[deliverable/binutils-gdb.git] / gdb / configure.host
index a2a8d5d36a05ab7df7895c8c0f41967eaa0990cb..3c59ad438c596896c8471289f4c7825c89da7157 100644 (file)
@@ -2,8 +2,11 @@
 # invoked from the autoconf generated configure script.
 
 # This file sets the following shell variables:
-#  gdb_host_cpu                generic name of host's CPU
-#  gdb_host            name of GDB host definition to use
+#  gdb_host_cpu                        generic name of host's CPU
+#  gdb_host                    name of GDB host definition to use
+#  gdb_host_float_format       host's float floatformat, or 0
+#  gdb_host_double_format      host's double floatformat, or 0
+#  gdb_host_long_double_format host's long double floatformat, or 0
 
 # Map host cpu into the config cpu subdirectory name.
 # The default is $host_cpu.
@@ -36,19 +39,19 @@ alpha*-*-osf1*)             gdb_host=alpha-osf1 ;;
 alpha*-*-osf2*)                gdb_host=alpha-osf2 ;;
 alpha*-*-osf[3456789]*)        gdb_host=alpha-osf3 ;;
 alpha*-*-linux*)       gdb_host=alpha-linux ;;
-alpha*-*-freebsd*)     gdb_host=fbsd ;;
-alpha*-*-netbsd*)      gdb_host=nbsd ;;
+alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
+                       gdb_host=fbsd ;;
+alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
+                       gdb_host=nbsd ;;
 alpha*-*-openbsd*)     gdb_host=nbsd ;;
 
 arm*-*-linux*)         gdb_host=linux ;;
-arm*-*-netbsdelf*)     gdb_host=nbsdelf ;;
+arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
+                       gdb_host=nbsdelf ;;
 arm*-*-netbsd*)                gdb_host=nbsdaout ;;
 
-hppa*-*-hiux*)         gdb_host=hppahpux ;;
-hppa*-*-hpux10.20)     gdb_host=hpux1020 ;;
-hppa*64*-*-hpux11*)    gdb_host=hpux11w ;;
-hppa*-*-hpux11*)       gdb_host=hpux11 ;;
-hppa*-*-hpux*)         gdb_host=hppahpux ;;
+hppa*-*-hpux* | hppa*-*-hiux*)
+                       gdb_host=hpux ;;
 hppa*-*-linux*)                gdb_host=linux ;;
 hppa*-*-openbsd*)      gdb_host=obsd ;;
 
@@ -58,7 +61,6 @@ i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
                        gdb_host=fbsd ;;
 i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
                        gdb_host=nbsdelf ;;
-i[34567]86-*-freebsd*) gdb_host=fbsd ;;
 i[34567]86-*-netbsd*)  gdb_host=nbsdaout ;;
 i[34567]86-*-go32*)    gdb_host=go32 ;;
 i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
@@ -72,6 +74,7 @@ i[34567]86-*-openbsd*)        gdb_host=obsd ;;
 i[34567]86-*-sco3.2v5*)        gdb_host=i386sco5 ;;
 i[34567]86-*-sco3.2v4*)        gdb_host=i386sco4 ;;
 i[34567]86-*-sco*)     gdb_host=i386sco ;;
+i[34567]86-*-solaris2.1[0-9]*) gdb_host=sol2-64 ;;
 i[34567]86-*-solaris*) gdb_host=i386sol2 ;;
 i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;;
 i[34567]86-*-sysv4*)   gdb_host=i386v4 ;;
@@ -82,11 +85,11 @@ i[34567]86-*-sysv*) gdb_host=i386v ;;
 i[34567]86-*-isc*)     gdb_host=i386v ;;
 i[34567]86-*-cygwin*)  gdb_host=cygwin ;;
 
-ia64-*-aix*)           gdb_host=aix ;;
 ia64-*-linux*)         gdb_host=linux ;;
 
 m68*-*-linux*)         gdb_host=linux ;;
-m68*-*-netbsdelf*)     gdb_host=nbsdelf ;;
+m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
+                       gdb_host=nbsdelf ;;
 m68*-*-netbsd*)                gdb_host=nbsdaout ;;
 m68*-*-openbsd*)       gdb_host=obsd ;;
 
@@ -95,16 +98,14 @@ m88*-*-openbsd*)    gdb_host=obsd ;;
 mips-sgi-irix5*)       gdb_host=irix5 ;;
 mips-sgi-irix6*)       gdb_host=irix6 ;;
 mips*-*-linux*)                gdb_host=linux ;;
-mips*-*-netbsd*)       gdb_host=nbsd ;;
-
-ns32k-*-netbsd*)       gdb_host=nbsdaout ;;
+mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
+                       gdb_host=nbsd ;;
+mips64*-*-openbsd*)    gdb_host=obsd64 ;;
 
-powerpc-*-aix3*)       gdb_host=aix ;;
-powerpc-*-aix4.[0-2]*) gdb_host=aix ;;
-powerpc-*-aix4.3.[0-1]*)       gdb_host=aix ;;
-powerpc-*-aix*)                gdb_host=aix432 ;;
+powerpc-*-aix*)                gdb_host=aix ;;
 powerpc-*-linux*)      gdb_host=linux ;;
-powerpc-*-netbsd*)     gdb_host=nbsd ;;
+powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
+                       gdb_host=nbsd ;;
 powerpc-*-openbsd*)    gdb_host=obsd ;;
 
 powerpc64-*-linux*)     gdb_host=ppc64-linux ;;
@@ -115,33 +116,67 @@ rs6000-*-*)               gdb_host=rs6000 ;;
 
 s390*-*-*)             gdb_host=s390 ;;
 
-sh*-*-netbsdelf*)      gdb_host=nbsd ;;
+sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
+                       gdb_host=nbsd ;;
 
-sparc64-*-freebsd*)    gdb_host=fbsd ;;
+sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
+                       gdb_host=fbsd ;;
 sparc-*-linux*)                gdb_host=linux ;;
 sparc64-*-linux*)      gdb_host=linux64 ;;
-sparc-*-netbsdelf*)    gdb_host=nbsdelf ;;
+sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
+                       gdb_host=nbsdelf ;;
 sparc-*-netbsdaout*)   gdb_host=nbsdaout ;;
 sparc-*-netbsd*)       gdb_host=nbsdaout ;;
-sparc64-*-netbsd*)     gdb_host=nbsd64 ;;
+sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
+                       gdb_host=nbsd64 ;;
 sparc-*-openbsd*)      gdb_host=nbsdelf ;;
 sparc64-*-openbsd*)    gdb_host=nbsd64 ;;
 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
                        gdb_host=sol2
                        ;;
 
-vax-*-netbsdelf*)      gdb_host=nbsdelf ;;
+vax-*-bsd*)            gdb_host=vax ;;
+vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
+                       gdb_host=nbsdelf ;;
 vax-*-netbsd*)         gdb_host=nbsdaout ;;
 vax-*-openbsd*)                gdb_host=obsd ;;
-vax-*-bsd*)            gdb_host=vaxbsd ;;
-vax-*-ultrix2*)                gdb_host=vaxult2 ;;
-vax-*-ultrix*)         gdb_host=vaxult ;;
+vax-*-ultrix*)         gdb_host=vax ;;
 
 x86_64-*-linux*)       gdb_host=linux64 ;;
-x86_64-*-freebsd*)     gdb_host=fbsd64 ;;
-x86_64-*-netbsd*)      gdb_host=nbsd64 ;;
+x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
+                       gdb_host=fbsd64 ;;
+x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
+                       gdb_host=nbsd64 ;;
 x86_64-*-openbsd*)     gdb_host=obsd64 ;;
 
 m32r*-*-linux*)          gdb_host=linux ;;
 
 esac
+
+
+
+# Map the host/cpu onto the floatformat correspondong to C's "float",
+# "double" and "long double" types.
+
+case "${host}" in
+i[34567]86-*-*)
+       gdb_host_float_format="&floatformat_ieee_single_little"
+       gdb_host_double_format="&floatformat_ieee_double_little"
+       gdb_host_long_double_format="&floatformat_i387_ext"
+       ;;
+hppa*-*-linux*)
+       gdb_host_float_format="&floatformat_ieee_single_big"
+       gdb_host_double_format="&floatformat_ieee_double_big"
+       gdb_host_long_double_format="&floatformat_ieee_double_big"
+       ;;
+m68*-*-*)
+       gdb_host_float_format="&floatformat_ieee_single_big"
+       gdb_host_double_format="&floatformat_ieee_double_big"
+       gdb_host_long_double_format="&floatformat_m68881_ext"
+       ;;
+*)
+       gdb_host_float_format=0
+       gdb_host_double_format=0
+       gdb_host_long_double_format=0
+       ;;
+esac
This page took 0.027143 seconds and 4 git commands to generate.