Add support for 32-bit hppa targets in muldi3 expander
[official-gcc.git] / libgfortran / configure.host
blobe9d92c9d34dd2f3a2fdba5d97c6ab6ffce1b06ad
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.
18 #   tmake_file          A list of machine-description-specific
19 #                       makefile fragments.
23 # DEFAULTS
24 fpu_host='fpu-generic'
25 ieee_support='no'
27 if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
28   fpu_host='fpu-aix'
29   ieee_support='yes'
32 if test "x${have_fpsetmask}" = "xyes"; then
33   fpu_host='fpu-sysv'
34   ieee_support='yes'
37 if test "x${have_feenableexcept}" = "xyes"; then
38   fpu_host='fpu-glibc'
39   ieee_support='yes'
42 # x86 asm should be used instead of glibc, since glibc doesn't support
43 # the x86 denormal exception.
44 case "${host_cpu}" in
45   i?86 | x86_64)
46     if test "x${have_soft_float}" = "xyes"; then
47       fpu_host='fpu-generic'
48     else
49       fpu_host='fpu-387'
50     fi
51     ieee_support='yes'
52     ;;
53 esac
55 # Some targets require additional compiler options for NaN/Inf.
56 ieee_flags=
57 case "${host_cpu}" in
58   alpha*)
59     ieee_flags="-mieee" ;;
60   sh*)
61     ieee_flags="-mieee" ;;
62 esac
64 tmake_file=
65 # Other system configury
66 case "${target}" in
68   *-*-aix*)
69         # Create AIX-style "FAT" libraries.
70         tmake_file="t-aix"
71         ;;
73   *)
74         ;;
76 esac