configure.host 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # configure.host
  2. #
  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.
  7. #
  8. #
  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
  13. #
  14. #
  15. # It sets the following shell variables:
  16. #
  17. # fpu_host FPU-specific code file, defaults to fpu-generic.
  18. # tmake_file A list of machine-description-specific
  19. # makefile fragments.
  20. # DEFAULTS
  21. fpu_host='fpu-generic'
  22. ieee_support='no'
  23. if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
  24. fpu_host='fpu-aix'
  25. ieee_support='yes'
  26. fi
  27. if test "x${have_fpsetmask}" = "xyes"; then
  28. fpu_host='fpu-sysv'
  29. ieee_support='yes'
  30. fi
  31. if test "x${have_feenableexcept}" = "xyes"; then
  32. fpu_host='fpu-glibc'
  33. ieee_support='yes'
  34. fi
  35. case "${host_cpu}" in
  36. # x86 asm should be used instead of glibc, since glibc doesn't support
  37. # the x86 denormal exception.
  38. i?86 | x86_64)
  39. if test "x${have_soft_float}" = "xyes"; then
  40. fpu_host='fpu-generic'
  41. ieee_support='no'
  42. else
  43. fpu_host='fpu-387'
  44. ieee_support='yes'
  45. fi
  46. ;;
  47. # use asm on aarch64-darwin
  48. aarch64)
  49. case "${host_os}" in
  50. darwin*)
  51. fpu_host='fpu-aarch64'
  52. ieee_support='yes'
  53. ;;
  54. esac
  55. esac
  56. # Some targets require additional compiler options for NaN/Inf.
  57. ieee_flags=
  58. case "${host_cpu}" in
  59. alpha*)
  60. ieee_flags="-mieee" ;;
  61. sh*)
  62. ieee_flags="-mieee" ;;
  63. esac
  64. tmake_file=
  65. # Other system configury
  66. case "${target}" in
  67. *-*-aix*)
  68. # Create AIX-style "FAT" libraries.
  69. tmake_file="t-aix"
  70. ;;
  71. *)
  72. ;;
  73. esac