# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/gcc/config-550.in # Copyright (C) 2004 - 2026 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- menu_begin MENU_COMPILER 'Compiler' pkgout default='' list='' while read pkg ver; do default=${default:-$pkg} list="$list $pkg Use_${pkg}_($ver)_as_standard_C_compiler" done < <(grep "^X .* CC " config/$config/packages | cut -f5,6 -d' ') if [ -z "$default" ]; then default="cc" list="cc Standard_C-Compiler_CC" fi choice SDECFG_DEFAULT_CC $default $list pkgout default='' list='' while read pkg ver; do default=${default:-$pkg} list="$list $pkg Use_${pkg}_($ver)_as_kernel_C_compiler" done < <(grep "^X .* KCC " config/$config/packages | cut -f5,6 -d' ') if [ -z "$default" ]; then default="kcc" list="kcc Standard_Kernel_C-Compiler_KCC" fi choice SDECFG_DEFAULT_KCC $default $list pkgout default='' list='' while read pkg ver; do default=${default:-$pkg} list="$list $pkg Use_${pkg}_($ver)_as_standard_C++_compiler" done < <(grep "^X .* CXX " config/$config/packages | cut -f5,6 -d' ') if [ -z "$default" ]; then default="c++" list="c++ Standard_C++-Compiler_C++" fi choice SDECFG_DEFAULT_CXX $default $list pkgout default='' list='' while read pkg ver; do default=${default:-$pkg} list="$list $pkg Use_${pkg}_($ver)_as_standard_F77_compiler" done < <(grep "^X .* F77 " config/$config/packages | cut -f5,6 -d' ') if [ -z "$default" ]; then default="f77" list="f77 Standard_Fortran-Compiler_F77" fi choice SDECFG_DEFAULT_F77 $default $list menu_end if pkgcheck "gcc" X; then menu_begin MENU_PKG_GCC 'GCC (GNU Compiler Collection) options' bool 'Enable Go' SDECFG_PKG_GCC_GO 0 which gnat >/dev/null bool 'Enable GNAT - GNU NYU Ada Translator' SDECFG_PKG_GCC_GNAT $((! $?)) [ -s $cfgtmpdir/subconfig-gcc.in ] && . $cfgtmpdir/subconfig-gcc.in menu_end fi