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.

115 lines
3.9 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 gcc2 X
  74. then
  75. menu_begin MENU_PKG_GCC2 'GCC (GNU Compiler Collection) 2.x options'
  76. bool 'Use GCC 2.x Stack-Smashing Protector' \
  77. ROCKCFG_PKG_GCC2_STACKPRO 0
  78. bool 'Do not build GCC 2.x CHILL compiler' \
  79. ROCKCFG_PKG_GCC2_NO_CHILL 0
  80. menu_end
  81. fi
  82. if pkgcheck gcc3 X
  83. then
  84. menu_begin MENU_PKG_GCC3 'GCC (GNU Compiler Collection) 3.x options'
  85. bool 'Use GCC 3.x Stack-Smashing Protector' \
  86. ROCKCFG_PKG_GCC3_STACKPRO 0
  87. bool 'Do not build GCC 3.x JAVA compiler' \
  88. ROCKCFG_PKG_GCC3_NO_JAVA 0
  89. menu_end
  90. fi
  91. if pkgcheck gcc33 X
  92. then
  93. menu_begin MENU_PKG_GCC33 'GCC (GNU Compiler Collection) 3.3 options'
  94. bool 'Use GCC 3.3 Stack-Smashing Protector' \
  95. ROCKCFG_PKG_GCC33_STACKPRO 0
  96. bool 'Do not build GCC 3.3 JAVA compiler' \
  97. ROCKCFG_PKG_GCC33_NO_JAVA 0
  98. menu_end
  99. fi
  100. if pkgcheck gccx X
  101. then
  102. menu_begin MENU_PKG_GCCX 'GCC (GNU Compiler Collection) snapshot options'
  103. bool 'Do not build GCC-snapshot JAVA compiler' \
  104. ROCKCFG_PKG_GCCX_NO_JAVA 0
  105. menu_end
  106. fi