[PR67828] don't unswitch on default defs of non-parms
[official-gcc.git] / libgfortran / configure.host
blob0a12a32fc8a521c48546375b82c237b6693f09aa
1 # configure.host
3 # This shell script handles all host based configuration for libgfortran.
4 # It sets various shell variables based on the the host triplet.
5 # You can modify this shell script without rerunning autoconf/aclocal/etc.
6 # This file is "sourced", not executed.
9 # It uses the following shell variables as set by config.guess:
10 #   host                The configuration host (full CPU-vendor-OS triplet)
11 #   host_cpu            The configuration host CPU
12 #   host_os             The configuration host OS
15 # It sets the following shell variables:
17 #   fpu_host            FPU-specific code file, defaults to fpu-generic.
20 # DEFAULTS
21 fpu_host='fpu-generic'
22 ieee_support='no'
24 if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
25   fpu_host='fpu-aix'
26   ieee_support='yes'
29 if test "x${have_fpsetmask}" = "xyes"; then
30   fpu_host='fpu-sysv'
31   ieee_support='yes'
34 if test "x${have_feenableexcept}" = "xyes"; then
35   fpu_host='fpu-glibc'
36   ieee_support='yes'
39 # x86 asm should be used instead of glibc, since glibc doesn't support
40 # the x86 denormal exception.
41 case "${host_cpu}" in
42   i?86 | x86_64)
43     fpu_host='fpu-387'
44     ieee_support='yes'
45     ;;
46 esac
48 # Some targets require additional compiler options for NaN/Inf.
49 ieee_flags=
50 case "${host_cpu}" in
51   alpha*)
52     ieee_flags="-mieee" ;;
53   sh*)
54     ieee_flags="-mieee" ;;
55 esac