73 printf "detect C compiler... " |
73 printf "detect C compiler... " |
74 |
74 |
75 if [ -n "$CC" ]; then |
75 if [ -n "$CC" ]; then |
76 if check_c_compiler "$CC"; then |
76 if check_c_compiler "$CC"; then |
77 TOOLCHAIN_CC=$CC |
77 TOOLCHAIN_CC=$CC |
78 TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc") |
78 TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"` |
79 echo $CC |
79 echo $CC |
80 else |
80 else |
81 echo "$CC is not a working C compiler" |
81 echo "$CC is not a working C compiler" |
82 TOOLCHAIN_ERROR="required C compiler not found" |
82 TOOLCHAIN_ERROR="required C compiler not found" |
83 fi |
83 fi |
84 else |
84 else |
85 for COMP in $C_COMPILERS |
85 for COMP in $C_COMPILERS |
86 do |
86 do |
87 if check_c_compiler "$COMP"; then |
87 if check_c_compiler "$COMP"; then |
88 TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc") |
88 TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"` |
89 TOOLCHAIN_CC=$COMP |
89 TOOLCHAIN_CC=$COMP |
90 break |
90 break |
91 fi |
91 fi |
92 done |
92 done |
93 echo "${TOOLCHAIN_CC-"not found"}" |
93 echo ${TOOLCHAIN_CC:-"not found"} |
94 fi |
94 fi |
95 |
95 |
96 printf "detect C++ compiler... " |
96 printf "detect C++ compiler... " |
97 |
97 |
98 if [ -n "$CXX" ]; then |
98 if [ -n "$CXX" ]; then |
99 if check_cpp_compiler "$CXX"; then |
99 if check_cpp_compiler "$CXX"; then |
100 TOOLCHAIN_CXX=$CXX |
100 TOOLCHAIN_CXX=$CXX |
101 TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc") |
101 TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"` |
102 echo $CXX |
102 echo $CXX |
103 else |
103 else |
104 echo "$CXX is not a working C++ compiler" |
104 echo "$CXX is not a working C++ compiler" |
105 TOOLCHAIN_ERROR="required C++ compiler not found" |
105 TOOLCHAIN_ERROR="required C++ compiler not found" |
106 fi |
106 fi |
107 else |
107 else |
108 for COMP in $CPP_COMPILERS |
108 for COMP in $CPP_COMPILERS |
109 do |
109 do |
110 if check_cpp_compiler "$COMP"; then |
110 if check_cpp_compiler "$COMP"; then |
111 TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc") |
111 TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"` |
112 TOOLCHAIN_CXX=$COMP |
112 TOOLCHAIN_CXX=$COMP |
113 break |
113 break |
114 fi |
114 fi |
115 done |
115 done |
116 echo "${TOOLCHAIN_CXX-"not found"}" |
116 echo ${TOOLCHAIN_CXX:-"not found"} |
117 fi |
117 fi |
118 |
118 |
119 printf "detect linker... " |
119 printf "detect linker... " |
120 TOOLCHAIN_LD=$TOOLCHAIN_CC |
120 TOOLCHAIN_LD=$TOOLCHAIN_CC |
121 echo "$TOOLCHAIN_LD" |
121 echo "$TOOLCHAIN_LD" |