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.

123 lines
4.1 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/gcc3/config-300.in
  9. # ROCK Linux is Copyright (C) 1998 - 2003 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. menu_begin MENU_COMPILER 'Selecting compiler'
  23. default='' ; list=''
  24. while read pkg ver ; do
  25. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  26. list="$list $pkg Use_${pkg}_($ver)_as_standard_C_compiler"
  27. done < <(grep "^X .* CC " config/$config/packages | cut -f5,6 -d' ')
  28. if [ -z "$default" ] ; then
  29. default="cc" ; list="cc Standard_C-Compiler_CC"
  30. fi
  31. choice ROCKCFG_DEFAULT_CC $default $list
  32. # do not build non-default gcc on stages 0 or 1
  33. if [ "$ROCKCFG_DEFAULT_CC" != "gcc2" ]; then
  34. pkgfilter sed -e '/ gcc2 / s/^\(..\)../\1--/'
  35. fi
  36. if [ "$ROCKCFG_DEFAULT_CC" != "gcc3" ]; then
  37. pkgfilter sed -e '/ gcc3 / s/^\(..\)../\1--/'
  38. fi
  39. if [ "$ROCKCFG_DEFAULT_CC" != "gcc33" ]; then
  40. pkgfilter sed -e '/ gcc33 / s/^\(..\)../\1--/'
  41. fi
  42. if [ "$ROCKCFG_DEFAULT_CC" != "gccx" ]; then
  43. pkgfilter sed -e '/ gccx / s/^\(..\)../\1--/'
  44. fi
  45. default='' ; list=''
  46. while read pkg ver ; do
  47. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  48. list="$list $pkg Use_${pkg}_($ver)_as_kernel_C_compiler"
  49. done < <(grep "^X .* KCC " config/$config/packages | cut -f5,6 -d' ')
  50. if [ -z "$default" ] ; then
  51. default="kcc" ; list="kcc Standard_Kernel_C-Compiler_KCC"
  52. fi
  53. choice ROCKCFG_DEFAULT_KCC $default $list
  54. default='' ; list=''
  55. while read pkg ver ; do
  56. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  57. list="$list $pkg Use_${pkg}_($ver)_as_standard_C++_compiler"
  58. done < <(grep "^X .* CXX " config/$config/packages | cut -f5,6 -d' ')
  59. if [ -z "$default" ] ; then
  60. default="c++" ; list="c++ Standard_C++-Compiler_C++"
  61. fi
  62. choice ROCKCFG_DEFAULT_CXX $default $list
  63. default='' ; list=''
  64. while read pkg ver ; do
  65. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  66. list="$list $pkg Use_${pkg}_($ver)_as_standard_F77_compiler"
  67. done < <(grep "^X .* F77 " config/$config/packages | cut -f5,6 -d' ')
  68. if [ -z "$default" ] ; then
  69. default="f77" ; list="f77 Standard_Fortran-Compiler_F77"
  70. fi
  71. choice ROCKCFG_DEFAULT_F77 $default $list
  72. menu_end
  73. if pkgcheck gcc3 X && pkgcheck gcc33 X; then
  74. comment ' '
  75. comment 'WARNING: gcc3 and gcc33 are not designed to work together!!'
  76. comment 'WARNING: please disable one of them.'
  77. fi
  78. if pkgcheck "gcc2|gcc3|gcc33|gccx" X; then
  79. menu_begin MENU_PKG_GCC 'GCC (GNU Compiler Collection) options'
  80. bool 'Use Stack-Smashing Protector when available' \
  81. ROCKCFG_PKG_GCC_STACKPRO 0
  82. %include package/*/*/subconfig-gcc.in
  83. if pkgcheck gcc2 X; then
  84. comment ' '
  85. comment '--- GCC 2.x options'
  86. bool 'Do not build CHILL compiler' \
  87. ROCKCFG_PKG_GCC2_NO_CHILL 0
  88. %include package/*/*/subconfig-gcc2.in
  89. fi
  90. if pkgcheck gcc3 X; then
  91. comment ' '
  92. comment '--- GCC 3.2.x options'
  93. bool 'Do not build JAVA compiler' \
  94. ROCKCFG_PKG_GCC3_NO_JAVA 0
  95. %include package/*/*/subconfig-gcc3.in
  96. fi
  97. if pkgcheck gcc33 X; then
  98. comment ' '
  99. comment '--- GCC 3.3.x options'
  100. bool 'Do not build JAVA compiler' \
  101. ROCKCFG_PKG_GCC33_NO_JAVA 0
  102. %include package/*/*/subconfig-gcc33.in
  103. fi
  104. if pkgcheck gccx X; then
  105. comment ' '
  106. comment '--- GCC-snapshot options'
  107. bool 'Do not build JAVA compiler' \
  108. ROCKCFG_PKG_GCCX_NO_JAVA 0
  109. %include package/*/*/subconfig-gccx.in
  110. fi
  111. menu_end
  112. fi