* imported qemu/hotfix-glibc-2.41.patch
[t2sde.git] / package / develop / gcc / config-550.in
bloba02999a9b73419649893bbb37c38c27b8e447e54
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/gcc/config-550.in
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 menu_begin MENU_COMPILER 'Compiler'
14         pkgout
15         default='' list=''
16         while read pkg ver; do
17                 default=${default:-$pkg}
18                 list="$list $pkg Use_${pkg}_($ver)_as_standard_C_compiler"
19         done < <(grep "^X .* CC " config/$config/packages | cut -f5,6 -d' ')
20         if [ -z "$default" ]; then
21                 default="cc" list="cc Standard_C-Compiler_CC"
22         fi
23         choice SDECFG_DEFAULT_CC $default $list
25         pkgout
26         default='' list=''
27         while read pkg ver; do
28                 default=${default:-$pkg}
29                 list="$list $pkg Use_${pkg}_($ver)_as_kernel_C_compiler"
30         done < <(grep "^X .* KCC " config/$config/packages | cut -f5,6 -d' ')
31         if [ -z "$default" ]; then
32                 default="kcc" list="kcc Standard_Kernel_C-Compiler_KCC"
33         fi
34         choice SDECFG_DEFAULT_KCC $default $list
36         pkgout
37         default='' list=''
38         while read pkg ver; do
39                 default=${default:-$pkg}
40                 list="$list $pkg Use_${pkg}_($ver)_as_standard_C++_compiler"
41         done < <(grep "^X .* CXX " config/$config/packages | cut -f5,6 -d' ')
42         if [ -z "$default" ]; then
43                 default="c++" list="c++ Standard_C++-Compiler_C++"
44         fi
45         choice SDECFG_DEFAULT_CXX $default $list
47         pkgout
48         default='' list=''
49         while read pkg ver; do
50                 default=${default:-$pkg}
51                 list="$list $pkg Use_${pkg}_($ver)_as_standard_F77_compiler"
52         done < <(grep "^X .* F77 " config/$config/packages | cut -f5,6 -d' ')
53         if [ -z "$default" ]; then
54                 default="f77" list="f77 Standard_Fortran-Compiler_F77"
55         fi
56         choice SDECFG_DEFAULT_F77 $default $list
57 menu_end
59 if pkgcheck "gcc" X; then
60         menu_begin MENU_PKG_GCC 'GCC (GNU Compiler Collection) options'
61                 bool 'Enable Go' SDECFG_PKG_GCC_GO 0
62                 which gnat >/dev/null
63                 bool 'Enable GNAT - GNU NYU Ada Translator' SDECFG_PKG_GCC_GNAT $((! $?))
64                 [ -s $cfgtmpdir/subconfig-gcc.in ] && . $cfgtmpdir/subconfig-gcc.in
65         menu_end