configure.tgt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # -*- shell-script -*-
  2. # Copyright (C) 2018-2022 Free Software Foundation, Inc.
  3. #
  4. # GCC is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 3, or (at your option)
  7. # any later version.
  8. #
  9. # GCC is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with GCC; see the file COPYING3. If not see
  16. # <http://www.gnu.org/licenses/>.
  17. # This is the target specific configuration file. This is invoked by the
  18. # autoconf generated configure script. Putting it in a separate shell file
  19. # lets us skip running autoconf when modifying target specific information.
  20. # Disable the libphobos or libdruntime components on untested or known
  21. # broken systems. More targets shall be added after testing.
  22. LIBPHOBOS_SUPPORTED=no
  23. LIBDRUNTIME_ONLY=auto
  24. case "${target}" in
  25. *-*-dragonfly*)
  26. LIBPHOBOS_SUPPORTED=yes
  27. ;;
  28. aarch64*-*-linux*)
  29. LIBPHOBOS_SUPPORTED=yes
  30. ;;
  31. arm*-*-linux*)
  32. LIBPHOBOS_SUPPORTED=yes
  33. ;;
  34. hppa-*-linux*)
  35. LIBPHOBOS_SUPPORTED=yes
  36. ;;
  37. mips*-*-linux*)
  38. LIBPHOBOS_SUPPORTED=yes
  39. ;;
  40. power*-*-freebsd*)
  41. LIBPHOBOS_SUPPORTED=yes
  42. ;;
  43. power*-*-linux*)
  44. LIBPHOBOS_SUPPORTED=yes
  45. LIBDRUNTIME_ONLY=yes
  46. ;;
  47. riscv*-*-linux*)
  48. LIBPHOBOS_SUPPORTED=yes
  49. ;;
  50. s390*-linux*)
  51. LIBPHOBOS_SUPPORTED=yes
  52. ;;
  53. sparc*-*-solaris2.11*)
  54. LIBPHOBOS_SUPPORTED=yes
  55. ;;
  56. x86_64-*-freebsd* | i?86-*-freebsd*)
  57. LIBPHOBOS_SUPPORTED=yes
  58. ;;
  59. x86_64-*-kfreebsd*-gnu | i?86-*-kfreebsd*-gnu)
  60. LIBPHOBOS_SUPPORTED=yes
  61. ;;
  62. x86_64-*-linux* | i?86-*-linux*)
  63. LIBPHOBOS_SUPPORTED=yes
  64. ;;
  65. x86_64-*-netbsd* | i?86-*-netbsd*)
  66. LIBPHOBOS_SUPPORTED=yes
  67. ;;
  68. x86_64-*-solaris2.11* | i?86-*-solaris2.11*)
  69. LIBPHOBOS_SUPPORTED=yes
  70. ;;
  71. esac