Make hostlib test build again.
[AROS.git] / features.in
blobb916cf62b2d0b744749d7b7016e94d0b9845704c
1 dnl Copyright © 1997-2016, The AROS Development Team. All rights reserved.
2 dnl $Id$
3 dnl
4 dnl Desc: Autoconf source for target compiler feature detection
5 dnl Lang: english 
7 # Note: After file changes, generate features anew and commit _both_ files.
8 -------------------------
10 AC_INIT(mmakefile)
11 AC_PREREQ(2.61)
12 AC_CONFIG_AUX_DIR(scripts/autoconf)
14 AROS_BUILDDIR=`${PWDCMD-pwd}`
15 AROS_BUILDDIR_UNIX=${PWD}
17 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
18 SRCDIR=${srcpwd}
20 NOLINKFLAGS="-nostdlib -nostartfiles"
21  LDFLAGS=$NOLINKFLAGS
22 # The first step is to find the binaries.
23 AC_PROG_CC
25 AC_MSG_CHECKING([target config location])
26 AC_ARG_WITH(config-dir,AC_HELP_STRING([--with-config-dir=VERSION],[Location of generated target config files]),targetcfg_dir="$withval",targetcfg_dir="")
27 if test "$targetcfg_dir" = ""; then
28     AC_MSG_ERROR([missing config directory!])
29 else
30     aros_targetcfg_dir="$targetcfg_dir"
32 AC_MSG_RESULT($aros_targetcfg_dir)
34 #-----------------------------------------------------------------------------
36 # Check if the target compiler supports some options used for delinting:
37 #  -Wunused-but-set-variable
38 #  -Wstrict-aliasing
39 #  -Warray-bounds
40 #  -Wenum-compare
41 #  -Wstrict-prototypes
42 #  -Wstrict-overflow
43 #  -Wformat-security
44 #  -Wmisleading-indentation
45 #  -Wnonnull-compare
46 #  -Wunused
47 #  -Wunused-value
48 #  -Wunused-variable
49 #  -Wunused-function
50 #  -Wuninitialized
51 #  -Wmaybe-uninitialized
52 #  -Wimplicit-function-declaration
53 #  -Wformat
54 #  -Wparentheses
55 #  -Wchar-subscripts
56 #  -Wendif-labels
57 #  -Wformat-contains-nul
58 #  -Wimplicit-int
59 #  -Waggressive-loop-optimizations
60 #  -Wcpp
61 #  -Wswitch
62 #  -Wdiscarded-qualifiers
63 #  -Wsequence-point
64 #  -Wunknown-pragmas
65 #  -Wdiscarded-array-qualifiers
66 #  -Wint-conversion
67 #  -Wint-to-pointer-cast
68 #  -Wpointer-to-int-cast
69 #  -Wunused-const-variable
70 #  -Wwrite-strings 
71 #  -Wcomment
72 #  -Wincompatible-pointer-types
73 #  -Wbool-compare
74 #  -Wlogical-not-parentheses
75 #  -Wpointer-sign
76 #  -Wshift-overflow
77 #  -Wframe-address
78 #  -Wdeprecated-declarations
79 #  -Wsign-compare
80 #  -Wattributes
81 #  -Woverflow
82 #  -Wunused-local-typedefs
83 #  -Wmissing-braces
84 #  -Wconversion-null
85 #  -Wnarrowing
86 #  -Wvolatile-register-var
88 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-but-set-variable])
89 CFLAGS=-Wunused-but-set-variable
90 AC_TRY_COMPILE(,, aros_unused_but_set_variable="yes", aros_unused_but_set_variable="no")
91 AC_MSG_RESULT($aros_unused_but_set_variable)
92 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
93     aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
96 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-aliasing])
97 CFLAGS=-Wstrict-aliasing
98 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
99 AC_MSG_RESULT($aros_strict_aliasing)
100 if test "x-$aros_strict_aliasing" = "x-yes" ; then
101     aros_cflags_strict_aliasing=-Wno-strict-aliasing
104 AC_MSG_CHECKING([whether ${CC} accepts -Warray-bounds])
105 CFLAGS=-Warray-bounds
106 AC_TRY_COMPILE(,, aros_array_bounds="yes", aros_array_bounds="no")
107 AC_MSG_RESULT($aros_array_bounds)
108 if test "x-$aros_array_bounds" = "x-yes" ; then
109     aros_cflags_array_bounds=-Wno-array-bounds
112 AC_MSG_CHECKING([whether ${CC} accepts -Wenum-compare])
113 CFLAGS=-Wenum-compare
114 AC_TRY_COMPILE(,, aros_enum_compare="yes", aros_enum_compare="no")
115 AC_MSG_RESULT($aros_enum_compare)
116 if test "x-$aros_enum_compare" = "x-yes" ; then
117     aros_cflags_enum_compare=-Wno-enum-compare
120 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-prototypes])
121 CFLAGS=-Wstrict-prototypes
122 AC_TRY_COMPILE(,, aros_strict_prototypes="yes", aros_strict_prototypes="no")
123 AC_MSG_RESULT($aros_strict_prototypes)
124 if test "x-$aros_strict_prototypes" = "x-yes" ; then
125     aros_cflags_strict_prototypes=-Wno-strict-prototypes
128 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-overflow])
129 CFLAGS=-Wstrict-overflow
130 AC_TRY_COMPILE(,, aros_strict_overflow="yes", aros_strict_overflow="no")
131 AC_MSG_RESULT($aros_strict_overflow)
132 if test "x-$aros_strict_overflow" = "x-yes" ; then
133     aros_cflags_strict_overflow=-Wno-strict-overflow
136 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-security])
137 CFLAGS=-Wformat-security
138 AC_TRY_COMPILE(,, aros_format_security="yes", aros_format_security="no")
139 AC_MSG_RESULT($aros_format_security)
140 if test "x-$aros_format_security" = "x-yes" ; then
141     aros_cflags_format_security=-Wno-format-security
144 AC_MSG_CHECKING([whether ${CC} accepts -Wmisleading-indentation])
145 CFLAGS=-Wmisleading-indentation
146 AC_TRY_COMPILE(,, aros_misleading_indentation="yes", aros_misleading_indentation="no")
147 AC_MSG_RESULT($aros_misleading_indentation)
148 if test "x-$aros_misleading_indentation" = "x-yes" ; then
149     aros_cflags_misleading_indentation=-Wno-misleading-indentation
152 AC_MSG_CHECKING([whether ${CC} accepts -Wnonnull-compare])
153 CFLAGS=-Wnonnull-compare
154 AC_TRY_COMPILE(,, aros_nonnull_compare="yes", aros_nonnull_compare="no")
155 AC_MSG_RESULT($aros_nonnull_compare)
156 if test "x-$aros_nonnull_compare" = "x-yes" ; then
157     aros_cflags_nonnull_compare=-Wno-nonnull-compare
160 AC_MSG_CHECKING([whether ${CC} accepts -Wunused])
161 CFLAGS=-Wunused
162 AC_TRY_COMPILE(,, aros_unused="yes", aros_unused="no")
163 AC_MSG_RESULT($aros_unused)
164 if test "x-$aros_unused" = "x-yes" ; then
165     aros_cflags_unused=-Wno-unused
168 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-value])
169 CFLAGS=-Wunused-value
170 AC_TRY_COMPILE(,, aros_unused_value="yes", aros_unused_value="no")
171 AC_MSG_RESULT($aros_unused_value)
172 if test "x-$aros_unused_value" = "x-yes" ; then
173     aros_cflags_unused_value=-Wno-unused-value
176 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-variable])
177 CFLAGS=-Wunused-variable
178 AC_TRY_COMPILE(,, aros_unused_variable="yes", aros_unused_variable="no")
179 AC_MSG_RESULT($aros_unused_variable)
180 if test "x-$aros_unused_variable" = "x-yes" ; then
181     aros_cflags_unused_variable=-Wno-unused-variable
184 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-function])
185 CFLAGS=-Wunused-function
186 AC_TRY_COMPILE(,, aros_unused_function="yes", aros_unused_function="no")
187 AC_MSG_RESULT($aros_unused_function)
188 if test "x-$aros_unused_function" = "x-yes" ; then
189     aros_cflags_unused_function=-Wno-unused-function
192 AC_MSG_CHECKING([whether ${CC} accepts -Wuninitialized])
193 CFLAGS=-Wuninitialized
194 AC_TRY_COMPILE(,, aros_uninitialized="yes", aros_uninitialized="no")
195 AC_MSG_RESULT($aros_uninitialized)
196 if test "x-$aros_uninitialized" = "x-yes" ; then
197     aros_cflags_uninitialized=-Wno-uninitialized
200 AC_MSG_CHECKING([whether ${CC} accepts -Wmaybe-uninitialized])
201 CFLAGS=-Wmaybe-uninitialized
202 AC_TRY_COMPILE(,, aros_maybe_uninitialized="yes", aros_maybe_uninitialized="no")
203 AC_MSG_RESULT($aros_maybe_uninitialized)
204 if test "x-$aros_maybe_uninitialized" = "x-yes" ; then
205     aros_cflags_maybe_uninitialized=-Wno-maybe-uninitialized
208 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-function-declaration])
209 CFLAGS=-Wimplicit-function-declaration
210 AC_TRY_COMPILE(,, aros_implicit_function_declaration="yes", aros_implicit_function_declaration="no")
211 AC_MSG_RESULT($aros_implicit_function_declaration)
212 if test "x-$aros_implicit_function_declaration" = "x-yes" ; then
213     aros_cflags_implicit_function_declaration=-Wno-implicit-function-declaration
216 AC_MSG_CHECKING([whether ${CC} accepts -Wformat])
217 CFLAGS=-Wformat
218 AC_TRY_COMPILE(,, aros_format="yes", aros_format="no")
219 AC_MSG_RESULT($aros_format)
220 if test "x-$aros_format" = "x-yes" ; then
221     aros_cflags_format=-Wno-format
224 AC_MSG_CHECKING([whether ${CC} accepts -Wparentheses])
225 CFLAGS=-Wparentheses
226 AC_TRY_COMPILE(,, aros_parentheses="yes", aros_parentheses="no")
227 AC_MSG_RESULT($aros_parentheses)
228 if test "x-$aros_parentheses" = "x-yes" ; then
229     aros_cflags_parentheses=-Wno-parentheses
232 AC_MSG_CHECKING([whether ${CC} accepts -Wchar-subscripts])
233 CFLAGS=-Wchar-subscripts
234 AC_TRY_COMPILE(,, aros_char_subscripts="yes", aros_char_subscripts="no")
235 AC_MSG_RESULT($aros_char_subscripts)
236 if test "x-$aros_char_subscripts" = "x-yes" ; then
237     aros_cflags_char_subscripts=-Wno-char-subscripts
240 AC_MSG_CHECKING([whether ${CC} accepts -Wendif-labels])
241 CFLAGS=-Wendif-labels
242 AC_TRY_COMPILE(,, aros_endif_labels="yes", aros_endif_labels="no")
243 AC_MSG_RESULT($aros_endif_labels)
244 if test "x-$aros_endif_labels" = "x-yes" ; then
245     aros_cflags_endif_labels=-Wno-endif-labels
248 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-contains-nul])
249 CFLAGS=-Wformat-contains-nul
250 AC_TRY_COMPILE(,, aros_format_contains_nul="yes", aros_format_contains_nul="no")
251 AC_MSG_RESULT($aros_format_contains_nul)
252 if test "x-$aros_format_contains_nul" = "x-yes" ; then
253     aros_cflags_format_contains_nul=-Wno-format-contains-nul
256 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-int])
257 CFLAGS=-Wimplicit-int
258 AC_TRY_COMPILE(,, aros_implicit_int="yes", aros_implicit_int="no")
259 AC_MSG_RESULT($aros_implicit_int)
260 if test "x-$aros_implicit_int" = "x-yes" ; then
261     aros_cflags_implicit_int=-Wno-implicit-int
264 AC_MSG_CHECKING([whether ${CC} accepts -Waggressive-loop-optimizations])
265 CFLAGS=-Waggressive-loop-optimizations
266 AC_TRY_COMPILE(,, aros_aggressive_loop_optimizations="yes", aros_aggressive_loop_optimizations="no")
267 AC_MSG_RESULT($aros_aggressive_loop_optimizations)
268 if test "x-$aros_aggressive_loop_optimizations" = "x-yes" ; then
269     aros_cflags_aggressive_loop_optimizations=-Wno-aggressive-loop-optimizations
272 AC_MSG_CHECKING([whether ${CC} accepts -Wcpp])
273 CFLAGS=-Wcpp
274 AC_TRY_COMPILE(,, aros_cpp="yes", aros_cpp="no")
275 AC_MSG_RESULT($aros_cpp)
276 if test "x-$aros_cpp" = "x-yes" ; then
277     aros_cflags_cpp=-Wno-cpp
280 AC_MSG_CHECKING([whether ${CC} accepts -Wswitch])
281 CFLAGS=-Wswitch
282 AC_TRY_COMPILE(,, aros_switch="yes", aros_switch="no")
283 AC_MSG_RESULT($aros_switch)
284 if test "x-$aros_switch" = "x-yes" ; then
285     aros_cflags_switch=-Wno-switch
288 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-qualifiers])
289 CFLAGS=-Wdiscarded-qualifiers
290 AC_TRY_COMPILE(,, aros_discarded_qualifiers="yes", aros_discarded_qualifiers="no")
291 AC_MSG_RESULT($aros_discarded_qualifiers)
292 if test "x-$aros_discarded_qualifiers" = "x-yes" ; then
293     aros_cflags_discarded_qualifiers=-Wno-discarded-qualifiers
296 AC_MSG_CHECKING([whether ${CC} accepts -Wsequence-point])
297 CFLAGS=-Wsequence-point
298 AC_TRY_COMPILE(,, aros_sequence_point="yes", aros_sequence_point="no")
299 AC_MSG_RESULT($aros_sequence_point)
300 if test "x-$aros_sequence_point" = "x-yes" ; then
301     aros_cflags_sequence_point=-Wno-sequence-point
304 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-pragmas])
305 CFLAGS=-Wunknown-pragmas
306 AC_TRY_COMPILE(,, aros_unknown_pragmas="yes", aros_unknown_pragmas="no")
307 AC_MSG_RESULT($aros_unknown_pragmas)
308 if test "x-$aros_unknown_pragmas" = "x-yes" ; then
309     aros_cflags_unknown_pragmas=-Wno-unknown-pragmas
312 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-array-qualifiers])
313 CFLAGS=-Wdiscarded-array-qualifiers
314 AC_TRY_COMPILE(,, aros_discarded_array_qualifiers="yes", aros_discarded_array_qualifiers="no")
315 AC_MSG_RESULT($aros_discarded_array_qualifiers)
316 if test "x-$aros_discarded_array_qualifiers" = "x-yes" ; then
317     aros_cflags_discarded_array_qualifiers=-Wno-discarded-array-qualifiers
320 AC_MSG_CHECKING([whether ${CC} accepts -Wint-conversion])
321 CFLAGS=-Wint-conversion
322 AC_TRY_COMPILE(,, aros_int_conversion="yes", aros_int_conversion="no")
323 AC_MSG_RESULT($aros_int_conversion)
324 if test "x-$aros_int_conversion" = "x-yes" ; then
325     aros_cflags_int_conversion=-Wno-int-conversion
328 AC_MSG_CHECKING([whether ${CC} accepts -Wint-to-pointer-cast])
329 CFLAGS=-Wint-to-pointer-cast
330 AC_TRY_COMPILE(,, aros_int_to_pointer_cast="yes", aros_int_to_pointer_cast="no")
331 AC_MSG_RESULT($aros_int_to_pointer_cast)
332 if test "x-$aros_int_to_pointer_cast" = "x-yes" ; then
333     aros_cflags_int_to_pointer_cast=-Wno-int-to-pointer-cast
336 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-to-int-cast])
337 CFLAGS=-Wpointer-to-int-cast
338 AC_TRY_COMPILE(,, aros_pointer_to_int_cast="yes", aros_pointer_to_int_cast="no")
339 AC_MSG_RESULT($aros_pointer_to_int_cast)
340 if test "x-$aros_pointer_to_int_cast" = "x-yes" ; then
341     aros_cflags_pointer_to_int_cast=-Wno-pointer-to-int-cast
344 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-const-variable])
345 CFLAGS=-Wunused-const-variable
346 AC_TRY_COMPILE(,, aros_unused_const_variable="yes", aros_unused_const_variable="no")
347 AC_MSG_RESULT($aros_unused_const_variable)
348 if test "x-$aros_unused_const_variable" = "x-yes" ; then
349     aros_cflags_unused_const_variable=-Wno-unused-const-variable
352 AC_MSG_CHECKING([whether ${CC} accepts -Wwrite-strings])
353 CFLAGS=-Wwrite-strings
354 AC_TRY_COMPILE(,, aros_write_strings="yes", aros_write_strings="no")
355 AC_MSG_RESULT($aros_write_strings)
356 if test "x-$aros_write_strings" = "x-yes" ; then
357     aros_cflags_write_strings=-Wno-write-strings
360 AC_MSG_CHECKING([whether ${CC} accepts -Wcomment])
361 CFLAGS=-Wcomment
362 AC_TRY_COMPILE(,, aros_comment="yes", aros_comment="no")
363 AC_MSG_RESULT($aros_comment)
364 if test "x-$aros_comment" = "x-yes" ; then
365     aros_cflags_comment=-Wno-comment
368 AC_MSG_CHECKING([whether ${CC} accepts -Wincompatible-pointer-types])
369 CFLAGS=-Wincompatible-pointer-types
370 AC_TRY_COMPILE(,, aros_incompatible_pointer_types="yes", aros_incompatible_pointer_types="no")
371 AC_MSG_RESULT($aros_incompatible_pointer_types)
372 if test "x-$aros_incompatible_pointer_types" = "x-yes" ; then
373     aros_cflags_incompatible_pointer_types=-Wno-incompatible-pointer-types
376 AC_MSG_CHECKING([whether ${CC} accepts -Wbool-compare])
377 CFLAGS=-Wbool-compare
378 AC_TRY_COMPILE(,, aros_bool_compare="yes", aros_bool_compare="no")
379 AC_MSG_RESULT($aros_bool_compare)
380 if test "x-$aros_bool_compare" = "x-yes" ; then
381     aros_cflags_bool_compare=-Wno-bool-compare
384 AC_MSG_CHECKING([whether ${CC} accepts -Wlogical-not-parentheses])
385 CFLAGS=-Wlogical-not-parentheses
386 AC_TRY_COMPILE(,, aros_logical_not_parentheses="yes", aros_logical_not_parentheses="no")
387 AC_MSG_RESULT($aros_logical_not_parentheses)
388 if test "x-$aros_logical_not_parentheses" = "x-yes" ; then
389     aros_cflags_logical_not_parentheses=-Wno-logical-not-parentheses
392 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-sign])
393 CFLAGS=-Wpointer-sign
394 AC_TRY_COMPILE(,, aros_pointer_sign="yes", aros_pointer_sign="no")
395 AC_MSG_RESULT($aros_pointer_sign)
396 if test "x-$aros_pointer_sign" = "x-yes" ; then
397     aros_cflags_pointer_sign=-Wno-pointer-sign
400 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-overflow])
401 CFLAGS=-Wshift-overflow
402 AC_TRY_COMPILE(,, aros_shift_overflow="yes", aros_shift_overflow="no")
403 AC_MSG_RESULT($aros_shift_overflow)
404 if test "x-$aros_shift_overflow" = "x-yes" ; then
405     aros_cflags_shift_overflow=-Wno-shift-overflow
408 AC_MSG_CHECKING([whether ${CC} accepts -Wframe-address])
409 CFLAGS=-Wframe-address
410 AC_TRY_COMPILE(,, aros_frame_address="yes", aros_frame_address="no")
411 AC_MSG_RESULT($aros_frame_address)
412 if test "x-$aros_frame_address" = "x-yes" ; then
413     aros_cflags_frame_address=-Wno-frame-address
416 AC_MSG_CHECKING([whether ${CC} accepts -Wdeprecated-declarations])
417 CFLAGS=-Wdeprecated-declarations
418 AC_TRY_COMPILE(,, aros_deprecated_declarations="yes", aros_deprecated_declarations="no")
419 AC_MSG_RESULT($aros_deprecated_declarations)
420 if test "x-$aros_deprecated_declarations" = "x-yes" ; then
421     aros_cflags_deprecated_declarations=-Wno-deprecated-declarations
424 AC_MSG_CHECKING([whether ${CC} accepts -Wsign-compare])
425 CFLAGS=-Wsign-compare
426 AC_TRY_COMPILE(,, aros_sign_compare="yes", aros_sign_compare="no")
427 AC_MSG_RESULT($aros_sign_compare)
428 if test "x-$aros_sign_compare" = "x-yes" ; then
429     aros_cflags_sign_compare=-Wno-sign-compare
432 AC_MSG_CHECKING([whether ${CC} accepts -Wattributes])
433 CFLAGS=-Wattributes
434 AC_TRY_COMPILE(,, aros_attributes="yes", aros_attributes="no")
435 AC_MSG_RESULT($aros_attributes)
436 if test "x-$aros_attributes" = "x-yes" ; then
437     aros_cflags_attributes=-Wno-attributes
440 AC_MSG_CHECKING([whether ${CC} accepts -Woverflow])
441 CFLAGS=-Woverflow
442 AC_TRY_COMPILE(,, aros_overflow="yes", aros_overflow="no")
443 AC_MSG_RESULT($aros_overflow)
444 if test "x-$aros_overflow" = "x-yes" ; then
445     aros_cflags_overflow=-Wno-overflow
448 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-local-typedefs])
449 CFLAGS=-Wunused-local-typedefs
450 AC_TRY_COMPILE(,, aros_unused_local_typedefs="yes", aros_unused_local_typedefs="no")
451 AC_MSG_RESULT($aros_unused_local_typedefs)
452 if test "x-$aros_unused_local_typedefs" = "x-yes" ; then
453     aros_cflags_unused_local_typedefs=-Wno-unused-local-typedefs
456 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-braces])
457 CFLAGS=-Wmissing-braces
458 AC_TRY_COMPILE(,, aros_missing_braces="yes", aros_missing_braces="no")
459 AC_MSG_RESULT($aros_missing_braces)
460 if test "x-$aros_missing_braces" = "x-yes" ; then
461     aros_cflags_missing_braces=-Wno-missing-braces
464 AC_MSG_CHECKING([whether ${CC} accepts -Wconversion-null])
465 CFLAGS=-Wconversion-null
466 AC_TRY_COMPILE(,, aros_conversion_null="yes", aros_conversion_null="no")
467 AC_MSG_RESULT($aros_conversion_null)
468 if test "x-$aros_conversion_null" = "x-yes" ; then
469     aros_cflags_conversion_null=-Wno-conversion-null
472 AC_MSG_CHECKING([whether ${CC} accepts -Wnarrowing])
473 CFLAGS=-Wnarrowing
474 AC_TRY_COMPILE(,, aros_narrowing="yes", aros_narrowing="no")
475 AC_MSG_RESULT($aros_narrowing)
476 if test "x-$aros_narrowing" = "x-yes" ; then
477     aros_cflags_narrowing=-Wno-narrowing
480 AC_MSG_CHECKING([whether ${CC} accepts -Wvolatile-register-var])
481 CFLAGS=-Wvolatile-register-var
482 AC_TRY_COMPILE(,, aros_volatile_register_var="yes", aros_volatile_register_var="no")
483 AC_MSG_RESULT($aros_volatile_register_var)
484 if test "x-$aros_volatile_register_var" = "x-yes" ; then
485     aros_cflags_volatile_register_var=-Wno-volatile-register-var
488 AC_SUBST(aros_cflags_unused_but_set_variable)
489 AC_SUBST(aros_cflags_strict_aliasing)
490 AC_SUBST(aros_cflags_array_bounds)
491 AC_SUBST(aros_cflags_enum_compare)
492 AC_SUBST(aros_cflags_strict_prototypes)
493 AC_SUBST(aros_cflags_strict_overflow)
494 AC_SUBST(aros_cflags_format_security)
495 AC_SUBST(aros_cflags_misleading_indentation)
496 AC_SUBST(aros_cflags_nonnull_compare)
497 AC_SUBST(aros_cflags_unused)
498 AC_SUBST(aros_cflags_unused_value)
499 AC_SUBST(aros_cflags_unused_variable)
500 AC_SUBST(aros_cflags_unused_function)
501 AC_SUBST(aros_cflags_uninitialized)
502 AC_SUBST(aros_cflags_maybe_uninitialized)
503 AC_SUBST(aros_cflags_implicit_function_declaration)
504 AC_SUBST(aros_cflags_format)
505 AC_SUBST(aros_cflags_parentheses)
506 AC_SUBST(aros_cflags_char_subscripts)
507 AC_SUBST(aros_cflags_endif_labels)
508 AC_SUBST(aros_cflags_format_contains_nul)
509 AC_SUBST(aros_cflags_implicit_int)
510 AC_SUBST(aros_cflags_aggressive_loop_optimizations)
511 AC_SUBST(aros_cflags_cpp)
512 AC_SUBST(aros_cflags_switch)
513 AC_SUBST(aros_cflags_discarded_qualifiers)
514 AC_SUBST(aros_cflags_sequence_point)
515 AC_SUBST(aros_cflags_unknown_pragmas)
516 AC_SUBST(aros_cflags_discarded_array_qualifiers)
517 AC_SUBST(aros_cflags_int_conversion)
518 AC_SUBST(aros_cflags_int_to_pointer_cast)
519 AC_SUBST(aros_cflags_pointer_to_int_cast)
520 AC_SUBST(aros_cflags_unused_const_variable)
521 AC_SUBST(aros_cflags_write_strings)
522 AC_SUBST(aros_cflags_comment)
523 AC_SUBST(aros_cflags_incompatible_pointer_types)
524 AC_SUBST(aros_cflags_bool_compare)
525 AC_SUBST(aros_cflags_logical_not_parentheses)
526 AC_SUBST(aros_cflags_pointer_sign)
527 AC_SUBST(aros_cflags_shift_overflow)
528 AC_SUBST(aros_cflags_frame_address)
529 AC_SUBST(aros_cflags_deprecated_declarations)
530 AC_SUBST(aros_cflags_sign_compare)
531 AC_SUBST(aros_cflags_attributes)
532 AC_SUBST(aros_cflags_overflow)
533 AC_SUBST(aros_cflags_unused_local_typedefs)
534 AC_SUBST(aros_cflags_missing_braces)
535 AC_SUBST(aros_cflags_conversion_null)
536 AC_SUBST(aros_cflags_narrowing)
537 AC_SUBST(aros_cflags_volatile_register_var)
539 AC_CONFIG_FILES(
540     ${aros_targetcfg_dir}/compiler.cfg:config/compiler.cfg.in
543 AC_OUTPUT