mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
4.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/gcc/config-300.in
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. if pkgcheck gcc X
  23. then
  24. menu_begin MENU_COMPILER 'GCC Compiler Options'
  25. bool 'Building gcc 2.x package' ROCKCFG_PKG_GCC_GCC2 0
  26. bool 'Building gcc 3.2.x package' ROCKCFG_PKG_GCC_GCC32 0
  27. bool 'Building gcc 3.3.x package' ROCKCFG_PKG_GCC_GCC33 0
  28. bool 'Building gcc 3.4.x package' ROCKCFG_PKG_GCC_GCC34 0
  29. bool 'Building gcc 4.0.x package' ROCKCFG_PKG_GCC_GCC40 1
  30. bool 'Building gcc 4.1.x package' ROCKCFG_PKG_GCC_GCC41 0
  31. d="none" ; l="" ; m=""
  32. if [ $ROCKCFG_PKG_GCC_GCC2 = 1 ]; then pkgfork gcc gcc2; d="gcc2"; l="$l $d"; fi
  33. if [ $ROCKCFG_PKG_GCC_GCC32 = 1 ]; then pkgfork gcc gcc32; d="gcc33"; l="$l $d"; fi
  34. if [ $ROCKCFG_PKG_GCC_GCC33 = 1 ]; then pkgfork gcc gcc33; d="gcc32"; l="$l $d"; fi
  35. if [ $ROCKCFG_PKG_GCC_GCC34 = 1 ]; then pkgfork gcc gcc34; d="gcc34"; l="$l $d"; fi
  36. if [ $ROCKCFG_PKG_GCC_GCC40 = 1 ]; then pkgfork gcc gcc40; d="gcc40"; l="$l $d"; m="$m $d"; fi
  37. if [ $ROCKCFG_PKG_GCC_GCC41 = 1 ]; then pkgfork gcc gcc41; d="gcc41"; l="$l $d"; m="$m $d"; fi
  38. pkgremove gcc
  39. k=""; for x in $l; do
  40. k="$k $x Use_${x}_as_standard_C_compiler"
  41. done
  42. choice ROCKCFG_DEFAULT_CC $d $k
  43. k=""; for x in $l; do
  44. k="$k $x Use_${x}_as_standard_Kernel_C_compiler"
  45. done
  46. choice ROCKCFG_DEFAULT_KCC $d $k
  47. k=""; for x in $l; do
  48. k="$k $x Use_${x}_as_standard_C++_compiler"
  49. done
  50. choice ROCKCFG_DEFAULT_CXX $d $k
  51. k=""; for x in $l; do
  52. k="$k $x Use_${x}_as_standard_Fortran_77_compiler"
  53. done
  54. choice ROCKCFG_DEFAULT_F77 $d $k
  55. k=""; for x in $m; do
  56. k="$k $x Use_${x}_as_standard_Fortran_95_compiler"
  57. done
  58. [ "$k" ] && choice ROCKCFG_DEFAULT_F95 $d $k
  59. # build non-default CCs in stages 5 and 9
  60. # and dedicated C++ and Fortran77 compilers in stages 2 and 9
  61. k=""; for x in gcc2 gcc32 gcc33 gcc34 gcc40 gcc41; do
  62. if [ "$ROCKCFG_DEFAULT_CC" != "$x" ] ; then
  63. if [[ "$ROCKCFG_DEFAULT_CXX" != "$x" && "$ROCKCFG_DEFAULT_F77" != "$x" ]]; then
  64. k="$k / gcc=$x / { s/^\(.\) [0-9-]*/\1 -----5---9/; s/ CORE //g; };"
  65. else
  66. k="$k / gcc=$x / s/^\(.\) [0-9-]*/\1 --2------9/;"
  67. fi
  68. fi
  69. done
  70. pkgfilter sed -e "$k"
  71. bool 'Use Stack-Smashing Protector when available' \
  72. ROCKCFG_PKG_GCC_STACKPRO 0
  73. %include package/*/*/subconfig-gcc.in
  74. if pkgcheck gcc=gcc2 X; then
  75. comment ' '
  76. comment '--- GCC 2.x options'
  77. bool 'Do not build CHILL compiler' \
  78. ROCKCFG_PKG_GCC2_NO_CHILL 1
  79. %include package/*/*/subconfig-gcc2.in
  80. fi
  81. if pkgcheck gcc=gcc32 X; then
  82. comment ' '
  83. comment '--- GCC 3.2.x options'
  84. bool 'Do not build JAVA compiler' \
  85. ROCKCFG_PKG_GCC32_NO_JAVA 1
  86. %include package/*/*/subconfig-gcc32.in
  87. fi
  88. if pkgcheck gcc=gcc33 X; then
  89. comment ' '
  90. comment '--- GCC 3.3.x options'
  91. bool 'Do not build JAVA compiler' \
  92. ROCKCFG_PKG_GCC33_NO_JAVA 1
  93. %include package/*/*/subconfig-gcc33.in
  94. fi
  95. if pkgcheck gcc=gcc34 X; then
  96. comment ' '
  97. comment '--- GCC 3.4.x options'
  98. bool 'Do not build JAVA compiler' \
  99. ROCKCFG_PKG_GCC34_NO_JAVA 1
  100. bool 'Do profiled bootstrap' \
  101. ROCKCFG_PKG_GCC34_PROFILED 1
  102. %include package/*/*/subconfig-gcc34.in
  103. fi
  104. if pkgcheck gcc=gcc40 X; then
  105. comment ' '
  106. comment '--- GCC 4.0.x options'
  107. bool 'Do not build JAVA compiler' \
  108. ROCKCFG_PKG_GCC40_NO_JAVA 1
  109. bool 'Do profiled bootstrap' \
  110. ROCKCFG_PKG_GCC40_PROFILED 1
  111. %include package/*/*/subconfig-gcc40.in
  112. fi
  113. if pkgcheck gcc=gcc41 X; then
  114. comment ' '
  115. comment '--- GCC 4.1.x options'
  116. bool 'Do not build JAVA compiler' \
  117. ROCKCFG_PKG_GCC41_NO_JAVA 1
  118. bool 'Do profiled bootstrap' \
  119. ROCKCFG_PKG_GCC41_PROFILED 1
  120. %include package/*/*/subconfig-gcc41.in
  121. fi
  122. menu_end
  123. fi