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