2 dnl This file contains details for non-native builds.
5 AC_DEFUN([GLIBCXX_CROSSCONFIG],[
6 # Base decisions on target environment.
9 # This is a freestanding configuration; there is nothing to do here.
13 # These definitions are for the SDE C library rather than newlib.
14 SECTION_FLAGS='-ffunction-sections -fdata-sections'
15 AC_SUBST(SECTION_FLAGS)
16 GLIBCXX_CHECK_COMPILER_FEATURES
17 GLIBCXX_CHECK_LINKER_FEATURES
18 GLIBCXX_CHECK_MATH_SUPPORT
19 GLIBCXX_CHECK_STDLIB_SUPPORT
21 AC_DEFINE(HAVE_FINITE)
26 AC_DEFINE(HAVE_LDEXPF)
32 GLIBCXX_CHECK_COMPILER_FEATURES
33 GLIBCXX_CHECK_LINKER_FEATURES
34 GLIBCXX_CHECK_MATH_SUPPORT
35 GLIBCXX_CHECK_STDLIB_SUPPORT
40 GLIBCXX_CHECK_LINKER_FEATURES
41 GLIBCXX_CHECK_MATH_SUPPORT
42 GLIBCXX_CHECK_STDLIB_SUPPORT
43 AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1)
44 # We don't yet support AIX's TLS ABI.
50 # Darwin versions vary, but the linker should work in a cross environment,
51 # so we just check for all the features here.
52 # Check for available headers.
54 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
55 GLIBCXX_CHECK_MATH_SUPPORT
56 GLIBCXX_CHECK_STDLIB_SUPPORT
60 # GLIBCXX_CHECK_MATH_SUPPORT
63 AC_DEFINE(HAVE_FINITE)
64 AC_DEFINE(HAVE_SINCOS)
69 SECTION_FLAGS='-ffunction-sections -fdata-sections'
70 AC_SUBST(SECTION_FLAGS)
71 GLIBCXX_CHECK_LINKER_FEATURES
72 AC_DEFINE(HAVE_SETENV)
73 AC_DEFINE(HAVE_FINITEF)
74 AC_DEFINE(HAVE_FINITE)
75 AC_DEFINE(HAVE_FREXPF)
77 AC_DEFINE(HAVE_HYPOTF)
80 AC_DEFINE(HAVE_ISNANF)
84 AC_DEFINE(HAVE_ATAN2F)
91 AC_DEFINE(HAVE_FLOORF)
93 AC_DEFINE(HAVE_FREXPF)
94 AC_DEFINE(HAVE_LDEXPF)
95 AC_DEFINE(HAVE_LOG10F)
100 AC_DEFINE(HAVE_SINHF)
101 AC_DEFINE(HAVE_SQRTF)
103 AC_DEFINE(HAVE_TANHF)
104 if test x"long_double_math_on_this_cpu" = x"yes"; then
105 AC_DEFINE(HAVE_FINITEL)
106 AC_DEFINE(HAVE_ISINFL)
107 AC_DEFINE(HAVE_ISNANL)
111 SECTION_FLAGS='-ffunction-sections -fdata-sections'
112 AC_SUBST(SECTION_FLAGS)
113 GLIBCXX_CHECK_LINKER_FEATURES
115 # GLIBCXX_CHECK_MATH_SUPPORT
116 AC_DEFINE(HAVE_ISNAN)
117 AC_DEFINE(HAVE_HYPOT)
118 AC_DEFINE(HAVE_ACOSF)
119 AC_DEFINE(HAVE_ASINF)
120 AC_DEFINE(HAVE_ATANF)
122 AC_DEFINE(HAVE_COSHF)
124 AC_DEFINE(HAVE_SINHF)
126 AC_DEFINE(HAVE_TANHF)
128 AC_DEFINE(HAVE_ATAN2F)
129 AC_DEFINE(HAVE_FABSF)
130 AC_DEFINE(HAVE_FMODF)
131 AC_DEFINE(HAVE_FREXPF)
133 AC_DEFINE(HAVE_LOG10F)
136 AC_DEFINE(HAVE_SQRTF)
138 # GLIBCXX_CHECK_STDLIB_SUPPORT
139 AC_DEFINE(HAVE_STRTOLD)
144 AC_DEFINE(HAVE_ISINF)
145 AC_DEFINE(HAVE_ISINFF)
146 AC_DEFINE(HAVE_ISNANF)
147 AC_DEFINE(HAVE_FINITE)
148 AC_DEFINE(HAVE_FINITEF)
152 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*)
153 GLIBCXX_CHECK_COMPILER_FEATURES
154 GLIBCXX_CHECK_LINKER_FEATURES
155 GLIBCXX_CHECK_MATH_SUPPORT
156 GLIBCXX_CHECK_STDLIB_SUPPORT
157 AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1)
162 GLIBCXX_CHECK_LINKER_FEATURES
163 GLIBCXX_CHECK_MATH_SUPPORT
164 GLIBCXX_CHECK_STDLIB_SUPPORT
167 SECTION_FLAGS='-ffunction-sections -fdata-sections'
168 AC_SUBST(SECTION_FLAGS)
169 GLIBCXX_CHECK_LINKER_FEATURES
170 AC_DEFINE(HAVE_FINITEF)
171 AC_DEFINE(HAVE_FINITE)
172 AC_DEFINE(HAVE_FREXPF)
173 AC_DEFINE(HAVE_HYPOTF)
174 AC_DEFINE(HAVE_ISINF)
175 AC_DEFINE(HAVE_ISINFF)
176 AC_DEFINE(HAVE_ISNAN)
177 AC_DEFINE(HAVE_ISNANF)
178 if test x"long_double_math_on_this_cpu" = x"yes"; then
179 AC_DEFINE(HAVE_FINITEL)
180 AC_DEFINE(HAVE_ISINFL)
181 AC_DEFINE(HAVE_ISNANL)
184 *-qnx6.1* | *-qnx6.2*)
185 SECTION_FLAGS='-ffunction-sections -fdata-sections'
186 AC_SUBST(SECTION_FLAGS)
187 GLIBCXX_CHECK_LINKER_FEATURES
190 AC_DEFINE(HAVE_COSHF)
191 AC_DEFINE(HAVE_COSHL)
194 AC_DEFINE(HAVE_LOG10F)
195 AC_DEFINE(HAVE_LOG10L)
198 AC_DEFINE(HAVE_SINHF)
199 AC_DEFINE(HAVE_SINHL)
202 GLIBCXX_CHECK_COMPILER_FEATURES
203 GLIBCXX_CHECK_LINKER_FEATURES
204 GLIBCXX_CHECK_MATH_SUPPORT
205 GLIBCXX_CHECK_STDLIB_SUPPORT
208 GLIBCXX_CHECK_LINKER_FEATURES
209 AC_DEFINE(HAVE_MBSTATE_T)
210 AC_DEFINE(HAVE_FINITE)
211 AC_DEFINE(HAVE_FPCLASS)
212 # All of the dependencies for wide character support are here, so
214 AC_DEFINE(_GLIBCXX_USE_WCHAR_T)
215 # These two C99 functions are present only in Solaris >= 10
216 AC_DEFINE(HAVE_STRTOF)
217 AC_DEFINE(HAVE_STRTOLD)
218 AC_DEFINE(HAVE_ISNAN)
219 AC_DEFINE(HAVE_ISNANF)
220 AC_DEFINE(HAVE_MODFF)
221 AC_DEFINE(HAVE_HYPOT)
224 SECTION_FLAGS='-ffunction-sections -fdata-sections'
225 SECTION_LDFLAGS='-Wl,--gc-sections $SECTION_LDFLAGS'
226 AC_SUBST(SECTION_FLAGS)
227 AC_DEFINE(HAVE_FINITE)
228 AC_DEFINE(HAVE_FINITEF)
229 AC_DEFINE(HAVE_FREXPF)
230 AC_DEFINE(HAVE_HYPOTF)
231 AC_DEFINE(HAVE_ISINF)
232 AC_DEFINE(HAVE_ISINFF)
233 AC_DEFINE(HAVE_ISNAN)
234 AC_DEFINE(HAVE_ISNANF)
235 AC_DEFINE(HAVE_SINCOS)
236 AC_DEFINE(HAVE_SINCOSF)
237 if test x"long_double_math_on_this_cpu" = x"yes"; then
238 AC_DEFINE(HAVE_FINITEL)
239 AC_DEFINE(HAVE_HYPOTL)
240 AC_DEFINE(HAVE_ISINFL)
241 AC_DEFINE(HAVE_ISNANL)
245 # Check for available headers.
246 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, VMS doesn't have a GNU ld
247 GLIBCXX_CHECK_MATH_SUPPORT
248 GLIBCXX_CHECK_STDLIB_SUPPORT
251 AC_DEFINE(HAVE_ACOSF)
252 AC_DEFINE(HAVE_ASINF)
253 AC_DEFINE(HAVE_ATAN2F)
254 AC_DEFINE(HAVE_ATANF)
255 AC_DEFINE(HAVE_CEILF)
257 AC_DEFINE(HAVE_COSHF)
259 AC_DEFINE(HAVE_FABSF)
260 AC_DEFINE(HAVE_FLOORF)
261 AC_DEFINE(HAVE_FMODF)
262 AC_DEFINE(HAVE_HYPOT)
263 AC_DEFINE(HAVE_LOG10F)
267 AC_DEFINE(HAVE_SINHF)
268 AC_DEFINE(HAVE_SQRTF)
270 AC_DEFINE(HAVE_TANHF)
273 AC_MSG_ERROR([No support for this host/target combination.])