export the kernel cpp flags
[AROS.git] / config / features.in
blob09417f402d99080c52f2f82aa623aa9438385cf2
1 dnl Copyright © 1997-2018, 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:
37 #  -fexceptions
38 #  -fpermissive
39 #  -ffast-math
40 #  -fno-builtin-floor
41 #  -flto
42 #  -fwhole-program
43 #  -floop-block
44 #  -floop-interchange
45 #  -floop-strip-mine
46 #  -fpeel-loops
47 #  -fstrict-aliasing
48 #  -finline-small-functions
49 #  -fipa-cp
50 #  -funroll-loops
52 AC_MSG_CHECKING([whether ${CC} accepts -fexceptions])
53 CFLAGS=-fexceptions
54 AC_TRY_COMPILE(,, aros_exceptions="yes", aros_exceptions="no")
55 AC_MSG_RESULT($aros_exceptions)
56 if test "x-$aros_exceptions" = "x-yes" ; then
57     aros_cflags_exceptions=-fexceptions
60 AC_MSG_CHECKING([whether ${CC} accepts -fpermissive])
61 CFLAGS=-fpermissive
62 AC_TRY_COMPILE(,, aros_permissive="yes", aros_permissive="no")
63 AC_MSG_RESULT($aros_permissive)
64 if test "x-$aros_permissive" = "x-yes" ; then
65     aros_cflags_permissive=-fpermissive
68 AC_MSG_CHECKING([whether ${CC} accepts -ffast-math])
69 CFLAGS=-ffast-math
70 AC_TRY_COMPILE(,, aros_fast_math="yes", aros_fast_math="no")
71 AC_MSG_RESULT($aros_fast_math)
72 if test "x-$aros_fast_math" = "x-yes" ; then
73     aros_cflags_fast_math=-ffast-math
76 AC_MSG_CHECKING([whether ${CC} accepts -fno-builtin-floor])
77 CFLAGS=-fno-builtin-floor
78 AC_TRY_COMPILE(,, aros_no_builtin_floor="yes", aros_no_builtin_floor="no")
79 AC_MSG_RESULT($aros_no_builtin_floor)
80 if test "x-$aros_no_builtin_floor" = "x-yes" ; then
81     aros_cflags_no_builtin_floor=-fno-builtin-floor
84 AC_MSG_CHECKING([whether ${CC} accepts -flto])
85 CFLAGS=-flto
86 AC_TRY_COMPILE(,, aros_lto="yes", aros_lto="no")
87 AC_MSG_RESULT($aros_lto)
88 if test "x-$aros_lto" = "x-yes" ; then
89     aros_cflags_lto=-flto
90     aros_cflags_nolto=-fno-lto
91     
92     AC_MSG_CHECKING([whether ${CC} accepts -fwhole-program])
93     CFLAGS=-fwhole-program
94     AC_TRY_COMPILE(,, aros_whole_program="yes", aros_whole_program="no")
95     AC_MSG_RESULT($aros_whole_program)
96     if test "x-$aros_whole_program" = "x-yes" ; then
97         aros_cflags_whole_program=-fwhole-program
98     fi
99     
100     AC_MSG_CHECKING([whether ${CC} accepts -floop-block])
101     CFLAGS=-floop-block
102     AC_TRY_COMPILE(,, aros_loop_block="yes", aros_loop_block="no")
103     AC_MSG_RESULT($aros_loop_block)
104     if test "x-$aros_loop_block" = "x-yes" ; then
105         aros_cflags_loop_block=-floop-block
106     fi
107     
108     AC_MSG_CHECKING([whether ${CC} accepts -floop-interchange])
109     CFLAGS=-floop-interchange
110     AC_TRY_COMPILE(,, aros_loop_interchange="yes", aros_loop_interchange="no")
111     AC_MSG_RESULT($aros_loop_interchange)
112     if test "x-$aros_loop_interchange" = "x-yes" ; then
113         aros_cflags_loop_interchange=-floop-interchange
114     fi
115     
116     AC_MSG_CHECKING([whether ${CC} accepts -floop-strip-mine])
117     CFLAGS=-floop-strip-mine
118     AC_TRY_COMPILE(,, aros_loop_strip_mine="yes", aros_loop_strip_mine="no")
119     AC_MSG_RESULT($aros_loop_strip_mine)
120     if test "x-$aros_loop_strip_mine" = "x-yes" ; then
121         aros_cflags_loop_strip_mine=-floop-strip-mine
122     fi
125 AC_MSG_CHECKING([whether ${CC} accepts -fpeel-loops])
126 CFLAGS=-fpeel-loops
127 AC_TRY_COMPILE(,, aros_peel_loops="yes", aros_peel_loops="no")
128 AC_MSG_RESULT($aros_peel_loops)
129 if test "x-$aros_peel_loops" = "x-yes" ; then
130     aros_cflags_peel_loops=-fpeel-loops
133 AC_MSG_CHECKING([whether ${CC} accepts -funroll-loops])
134 CFLAGS=-funroll-loops
135 AC_TRY_COMPILE(,, aros_unroll_loops="yes", aros_unroll_loops="no")
136 AC_MSG_RESULT($aros_unroll_loops)
137 if test "x-$aros_unroll_loops" = "x-yes" ; then
138     aros_cflags_unroll_loops=-funroll-loops
141 AC_MSG_CHECKING([whether ${CC} accepts -fstrict-aliasing])
142 CFLAGS=-fstrict-aliasing
143 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
144 AC_MSG_RESULT($aros_strict_aliasing)
145 if test "x-$aros_strict_aliasing" = "x-yes" ; then
146     aros_cflags_strictaliasing=-fstrict-aliasing
147     aros_cflags_nostrictaliasing=-fno-strict-aliasing
150 AC_MSG_CHECKING([whether ${CC} accepts -finline-small-functions])
151 CFLAGS=-finline-small-functions
152 AC_TRY_COMPILE(,, aros_inline_small_functions="yes", aros_inline_small_functions="no")
153 AC_MSG_RESULT($aros_inline_small_functions)
154 if test "x-$aros_inline_small_functions" = "x-yes" ; then
155     aros_cflags_inlinesmallfunctions=-finline-small-functions
156     aros_cflags_noinlinesmallfunctions=-fno-inline-small-functions
159 AC_MSG_CHECKING([whether ${CC} accepts -fipa-cp])
160 CFLAGS=-fipa-cp
161 AC_TRY_COMPILE(,, aros_ipa_cp="yes", aros_ipa_cp="no")
162 AC_MSG_RESULT($aros_ipa_cp)
163 if test "x-$aros_ipa_cp" = "x-yes" ; then
164     aros_cflags_ipacp=-fipa-cp
165     aros_cflags_noipacp=-fno-ipa-cp
168 AC_MSG_CHECKING([whether ${CC} accepts -iquote])
169 CFLAGS="-iquote."
170 AC_TRY_COMPILE(,, has_iquote="yes", has_iquote="no")
171 AC_MSG_RESULT($has_iquote)
172 if test "x-$has_iquote" = "x-yes" ; then
173     aros_cflags_iquote=-iquote
174     aros_cflags_iquote_end=
175 else
176     aros_cflags_iquote=-I
177     aros_cflags_iquote_end=-I-
180 #-----------------------------------------------------------------------------
182 # Check if the target compiler supports some options:
183 #  -mno-red-zone
185 AC_MSG_CHECKING([whether ${CC} accepts -mno-red-zone])
186 CFLAGS=-mno-red-zone
187 AC_TRY_COMPILE(,, aros_no_red_zone="yes", aros_no_red_zone="no")
188 AC_MSG_RESULT($aros_no_red_zone)
189 if test "x-$aros_no_red_zone" = "x-yes" ; then
190     aros_cflags_no_red_zone=-mno-red-zone
193 #-----------------------------------------------------------------------------
195 # Check if the target compiler supports some options used for de-linting:
196 #  -Werror
197 #  -Wunused-command-line-argument
198 #  -Wunknown-warning-option
199 #  -Wunused-but-set-variable
200 #  -Wstrict-aliasing
201 #  -Warray-bounds
202 #  -Wenum-compare
203 #  -Wstrict-prototypes
204 #  -Wstrict-overflow
205 #  -Wformat-security
206 #  -Wmisleading-indentation
207 #  -Wnonnull-compare
208 #  -Wunused
209 #  -Wunused-label
210 #  -Wunused-value
211 #  -Wunused-variable
212 #  -Wunused-function
213 #  -Wunused-parameter
214 #  -Wuninitialized
215 #  -Wmaybe-uninitialized
216 #  -Wimplicit-function-declaration
217 #  -Wformat
218 #  -Wparentheses
219 #  -Wchar-subscripts
220 #  -Wendif-labels
221 #  -Wformat-contains-nul
222 #  -Wimplicit-int
223 #  -Waggressive-loop-optimizations
224 #  -Wcpp
225 #  -Wswitch
226 #  -Wdiscarded-qualifiers
227 #  -Wsequence-point
228 #  -Wunknown-pragmas
229 #  -Wdiscarded-array-qualifiers
230 #  -Wint-conversion
231 #  -Wint-to-pointer-cast
232 #  -Wpointer-to-int-cast
233 #  -Wunused-const-variable
234 #  -Wwrite-strings 
235 #  -Wcomment
236 #  -Wincompatible-pointer-types
237 #  -Wbool-compare
238 #  -Wlogical-not-parentheses
239 #  -Wpointer-sign
240 #  -Wshift-overflow
241 #  -Wframe-address
242 #  -Wdeprecated-declarations
243 #  -Wsign-compare
244 #  -Wattributes
245 #  -Woverflow
246 #  -Wunused-local-typedefs
247 #  -Wmissing-braces
248 #  -Wconversion-null
249 #  -Wnarrowing
250 #  -Wvolatile-register-var
251 #  -Wsizeof-pointer-memaccess
252 #  -Wreturn-type
253 #  -Wformat-zero-length
254 #  -Wlto-type-mismatch
255 #  -Wtautological-compare
256 #  -Wempty-body
257 #  -Wstringop-overflow
258 #  -Wformat-truncation
260 AC_MSG_CHECKING([whether ${CC} accepts -Werror])
261 CFLAGS=-Werror
262 AC_TRY_COMPILE(,, aros_error="yes", aros_error="no")
263 AC_MSG_RESULT($aros_error)
264 if test "x-$aros_error" = "x-yes" ; then
265     aros_warnflags_error=-Werror
266     aros_nowarnflags_error=-Wno-error
269 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-command-line-argument])
270 CFLAGS=-Wunused-command-line-argument
271 AC_TRY_COMPILE(,, aros_unused_command_line_argument="yes", aros_unused_command_line_argument="no")
272 AC_MSG_RESULT($aros_unused_command_line_argument)
273 if test "x-$aros_unused_command_line_argument" = "x-yes" ; then
274     aros_warnflags_unused_command_line_argument=-Wunused-command-line-argument
275     aros_nowarnflags_unused_command_line_argument=-Wno-unused-command-line-argument
278 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-warning-option])
279 CFLAGS=-Wunknown-warning-option
280 AC_TRY_COMPILE(,, aros_unknown_warning_option="yes", aros_unknown_warning_option="no")
281 AC_MSG_RESULT($aros_unknown_warning_option)
282 if test "x-$aros_unknown_warning_option" = "x-yes" ; then
283     aros_warnflags_unknown_warning_option=-Wunknown-warning-option
284     aros_nowarnflags_unknown_warning_option=-Wno-unknown-warning-option
287 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-but-set-variable])
288 CFLAGS=-Wunused-but-set-variable
289 AC_TRY_COMPILE(,, aros_unused_but_set_variable="yes", aros_unused_but_set_variable="no")
290 AC_MSG_RESULT($aros_unused_but_set_variable)
291 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
292     aros_warnflags_unused_but_set_variable=-Wunused-but-set-variable
293     aros_nowarnflags_unused_but_set_variable=-Wno-unused-but-set-variable
296 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-aliasing])
297 CFLAGS=-Wstrict-aliasing
298 AC_TRY_COMPILE(,, aros_strict_aliasing="yes", aros_strict_aliasing="no")
299 AC_MSG_RESULT($aros_strict_aliasing)
300 if test "x-$aros_strict_aliasing" = "x-yes" ; then
301     aros_warnflags_strict_aliasing=-Wstrict-aliasing
302     aros_nowarnflags_strict_aliasing=-Wno-strict-aliasing
305 AC_MSG_CHECKING([whether ${CC} accepts -Warray-bounds])
306 CFLAGS=-Warray-bounds
307 AC_TRY_COMPILE(,, aros_array_bounds="yes", aros_array_bounds="no")
308 AC_MSG_RESULT($aros_array_bounds)
309 if test "x-$aros_array_bounds" = "x-yes" ; then
310     aros_warnflags_array_bounds=-Warray-bounds
311     aros_nowarnflags_array_bounds=-Wno-array-bounds
314 AC_MSG_CHECKING([whether ${CC} accepts -Wenum-compare])
315 CFLAGS=-Wenum-compare
316 AC_TRY_COMPILE(,, aros_enum_compare="yes", aros_enum_compare="no")
317 AC_MSG_RESULT($aros_enum_compare)
318 if test "x-$aros_enum_compare" = "x-yes" ; then
319     aros_warnflags_enum_compare=-Wenum-compare
320     aros_nowarnflags_enum_compare=-Wno-enum-compare
323 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-prototypes])
324 CFLAGS=-Wstrict-prototypes
325 AC_TRY_COMPILE(,, aros_strict_prototypes="yes", aros_strict_prototypes="no")
326 AC_MSG_RESULT($aros_strict_prototypes)
327 if test "x-$aros_strict_prototypes" = "x-yes" ; then
328     aros_warnflags_strict_prototypes=-Wstrict-prototypes
329     aros_nowarnflags_strict_prototypes=-Wno-strict-prototypes
332 AC_MSG_CHECKING([whether ${CC} accepts -Wstrict-overflow])
333 CFLAGS=-Wstrict-overflow
334 AC_TRY_COMPILE(,, aros_strict_overflow="yes", aros_strict_overflow="no")
335 AC_MSG_RESULT($aros_strict_overflow)
336 if test "x-$aros_strict_overflow" = "x-yes" ; then
337     aros_warnflags_strict_overflow=-Wstrict-overflow
338     aros_nowarnflags_strict_overflow=-Wno-strict-overflow
341 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-security])
342 CFLAGS=-Wformat-security
343 AC_TRY_COMPILE(,, aros_format_security="yes", aros_format_security="no")
344 AC_MSG_RESULT($aros_format_security)
345 if test "x-$aros_format_security" = "x-yes" ; then
346     aros_warnflags_format_security=-Wformat-security
347     aros_nowarnflags_format_security=-Wno-format-security
350 AC_MSG_CHECKING([whether ${CC} accepts -Wmisleading-indentation])
351 CFLAGS=-Wmisleading-indentation
352 AC_TRY_COMPILE(,, aros_misleading_indentation="yes", aros_misleading_indentation="no")
353 AC_MSG_RESULT($aros_misleading_indentation)
354 if test "x-$aros_misleading_indentation" = "x-yes" ; then
355     aros_warnflags_misleading_indentation=-Wmisleading-indentation
356     aros_nowarnflags_misleading_indentation=-Wno-misleading-indentation
359 AC_MSG_CHECKING([whether ${CC} accepts -Wnonnull-compare])
360 CFLAGS=-Wnonnull-compare
361 AC_TRY_COMPILE(,, aros_nonnull_compare="yes", aros_nonnull_compare="no")
362 AC_MSG_RESULT($aros_nonnull_compare)
363 if test "x-$aros_nonnull_compare" = "x-yes" ; then
364     aros_warnflags_nonnull_compare=-Wnonnull-compare
365     aros_nowarnflags_nonnull_compare=-Wno-nonnull-compare
368 AC_MSG_CHECKING([whether ${CC} accepts -Wunused])
369 CFLAGS=-Wunused
370 AC_TRY_COMPILE(,, aros_unused="yes", aros_unused="no")
371 AC_MSG_RESULT($aros_unused)
372 if test "x-$aros_unused" = "x-yes" ; then
373     aros_warnflags_unused=-Wunused
374     aros_nowarnflags_unused=-Wno-unused
377 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-label])
378 CFLAGS=-Wunused-label
379 AC_TRY_COMPILE(,, aros_unused_label="yes", aros_unused_label="no")
380 AC_MSG_RESULT($aros_unused_label)
381 if test "x-$aros_unused_label" = "x-yes" ; then
382     aros_warnflags_unused_label=-Wunused-label
383     aros_nowarnflags_unused_label=-Wno-unused-label
386 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-value])
387 CFLAGS=-Wunused-value
388 AC_TRY_COMPILE(,, aros_unused_value="yes", aros_unused_value="no")
389 AC_MSG_RESULT($aros_unused_value)
390 if test "x-$aros_unused_value" = "x-yes" ; then
391     aros_warnflags_unused_value=-Wunused-value
392     aros_nowarnflags_unused_value=-Wno-unused-value
395 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-variable])
396 CFLAGS=-Wunused-variable
397 AC_TRY_COMPILE(,, aros_unused_variable="yes", aros_unused_variable="no")
398 AC_MSG_RESULT($aros_unused_variable)
399 if test "x-$aros_unused_variable" = "x-yes" ; then
400     aros_warnflags_unused_variable=-Wunused-variable
401     aros_nowarnflags_unused_variable=-Wno-unused-variable
404 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-function])
405 CFLAGS=-Wunused-function
406 AC_TRY_COMPILE(,, aros_unused_function="yes", aros_unused_function="no")
407 AC_MSG_RESULT($aros_unused_function)
408 if test "x-$aros_unused_function" = "x-yes" ; then
409     aros_warnflags_unused_function=-Wunused-function
410     aros_nowarnflags_unused_function=-Wno-unused-function
413 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-parameter])
414 CFLAGS=-Wunused-parameter
415 AC_TRY_COMPILE(,, aros_unused_parameter="yes", aros_unused_parameter="no")
416 AC_MSG_RESULT($aros_unused_parameter)
417 if test "x-$aros_unused_parameter" = "x-yes" ; then
418     aros_warnflags_unused_parameter=-Wunused-parameter
419     aros_nowarnflags_unused_parameter=-Wno-unused-parameter
422 AC_MSG_CHECKING([whether ${CC} accepts -Wuninitialized])
423 CFLAGS=-Wuninitialized
424 AC_TRY_COMPILE(,, aros_uninitialized="yes", aros_uninitialized="no")
425 AC_MSG_RESULT($aros_uninitialized)
426 if test "x-$aros_uninitialized" = "x-yes" ; then
427     aros_warnflags_uninitialized=-Wuninitialized
428     aros_nowarnflags_uninitialized=-Wno-uninitialized
431 AC_MSG_CHECKING([whether ${CC} accepts -Wmaybe-uninitialized])
432 CFLAGS=-Wmaybe-uninitialized
433 AC_TRY_COMPILE(,, aros_maybe_uninitialized="yes", aros_maybe_uninitialized="no")
434 AC_MSG_RESULT($aros_maybe_uninitialized)
435 if test "x-$aros_maybe_uninitialized" = "x-yes" ; then
436     aros_warnflags_maybe_uninitialized=-Wmaybe-uninitialized
437     aros_nowarnflags_maybe_uninitialized=-Wno-maybe-uninitialized
438 else
439     aros_warnflags_maybe_uninitialized=$aros_warnflags_uninitialized
440     aros_nowarnflags_maybe_uninitialized=$aros_nowarnflags_uninitialized
443 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-function-declaration])
444 CFLAGS=-Wimplicit-function-declaration
445 AC_TRY_COMPILE(,, aros_implicit_function_declaration="yes", aros_implicit_function_declaration="no")
446 AC_MSG_RESULT($aros_implicit_function_declaration)
447 if test "x-$aros_implicit_function_declaration" = "x-yes" ; then
448     aros_warnflags_implicit_function_declaration=-Wimplicit-function-declaration
449     aros_nowarnflags_implicit_function_declaration=-Wno-implicit-function-declaration
452 AC_MSG_CHECKING([whether ${CC} accepts -Wformat])
453 CFLAGS=-Wformat
454 AC_TRY_COMPILE(,, aros_format="yes", aros_format="no")
455 AC_MSG_RESULT($aros_format)
456 if test "x-$aros_format" = "x-yes" ; then
457     aros_warnflags_format=-Wformat
458     aros_nowarnflags_format=-Wno-format
461 AC_MSG_CHECKING([whether ${CC} accepts -Wparentheses])
462 CFLAGS=-Wparentheses
463 AC_TRY_COMPILE(,, aros_parentheses="yes", aros_parentheses="no")
464 AC_MSG_RESULT($aros_parentheses)
465 if test "x-$aros_parentheses" = "x-yes" ; then
466     aros_warnflags_parentheses=-Wparentheses
467     aros_nowarnflags_parentheses=-Wno-parentheses
470 AC_MSG_CHECKING([whether ${CC} accepts -Wchar-subscripts])
471 CFLAGS=-Wchar-subscripts
472 AC_TRY_COMPILE(,, aros_char_subscripts="yes", aros_char_subscripts="no")
473 AC_MSG_RESULT($aros_char_subscripts)
474 if test "x-$aros_char_subscripts" = "x-yes" ; then
475     aros_warnflags_char_subscripts=-Wchar-subscripts
476     aros_nowarnflags_char_subscripts=-Wno-char-subscripts
479 AC_MSG_CHECKING([whether ${CC} accepts -Wendif-labels])
480 CFLAGS=-Wendif-labels
481 AC_TRY_COMPILE(,, aros_endif_labels="yes", aros_endif_labels="no")
482 AC_MSG_RESULT($aros_endif_labels)
483 if test "x-$aros_endif_labels" = "x-yes" ; then
484     aros_warnflags_endif_labels=-Wendif-labels
485     aros_nowarnflags_endif_labels=-Wno-endif-labels
488 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-contains-nul])
489 CFLAGS=-Wformat-contains-nul
490 AC_TRY_COMPILE(,, aros_format_contains_nul="yes", aros_format_contains_nul="no")
491 AC_MSG_RESULT($aros_format_contains_nul)
492 if test "x-$aros_format_contains_nul" = "x-yes" ; then
493     aros_warnflags_format_contains_nul=-Wformat-contains-nul
494     aros_nowarnflags_format_contains_nul=-Wno-format-contains-nul
497 AC_MSG_CHECKING([whether ${CC} accepts -Wimplicit-int])
498 CFLAGS=-Wimplicit-int
499 AC_TRY_COMPILE(,, aros_implicit_int="yes", aros_implicit_int="no")
500 AC_MSG_RESULT($aros_implicit_int)
501 if test "x-$aros_implicit_int" = "x-yes" ; then
502     aros_warnflags_implicit_int=-Wimplicit-int
503     aros_nowarnflags_implicit_int=-Wno-implicit-int
506 AC_MSG_CHECKING([whether ${CC} accepts -Waggressive-loop-optimizations])
507 CFLAGS=-Waggressive-loop-optimizations
508 AC_TRY_COMPILE(,, aros_aggressive_loop_optimizations="yes", aros_aggressive_loop_optimizations="no")
509 AC_MSG_RESULT($aros_aggressive_loop_optimizations)
510 if test "x-$aros_aggressive_loop_optimizations" = "x-yes" ; then
511     aros_warnflags_aggressive_loop_optimizations=-Waggressive-loop-optimizations
512     aros_nowarnflags_aggressive_loop_optimizations=-Wno-aggressive-loop-optimizations
515 AC_MSG_CHECKING([whether ${CC} accepts -Wcpp])
516 CFLAGS=-Wcpp
517 AC_TRY_COMPILE(,, aros_cpp="yes", aros_cpp="no")
518 AC_MSG_RESULT($aros_cpp)
519 if test "x-$aros_cpp" = "x-yes" ; then
520     aros_warnflags_cpp=-Wcpp
521     aros_nowarnflags_cpp=-Wno-cpp
524 AC_MSG_CHECKING([whether ${CC} accepts -Wswitch])
525 CFLAGS=-Wswitch
526 AC_TRY_COMPILE(,, aros_switch="yes", aros_switch="no")
527 AC_MSG_RESULT($aros_switch)
528 if test "x-$aros_switch" = "x-yes" ; then
529     aros_warnflags_switch=-Wswitch
530     aros_nowarnflags_switch=-Wno-switch
533 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-qualifiers])
534 CFLAGS=-Wdiscarded-qualifiers
535 AC_TRY_COMPILE(,, aros_discarded_qualifiers="yes", aros_discarded_qualifiers="no")
536 AC_MSG_RESULT($aros_discarded_qualifiers)
537 if test "x-$aros_discarded_qualifiers" = "x-yes" ; then
538     aros_warnflags_discarded_qualifiers=-Wdiscarded-qualifiers
539     aros_nowarnflags_discarded_qualifiers=-Wno-discarded-qualifiers
542 AC_MSG_CHECKING([whether ${CC} accepts -Wsequence-point])
543 CFLAGS=-Wsequence-point
544 AC_TRY_COMPILE(,, aros_sequence_point="yes", aros_sequence_point="no")
545 AC_MSG_RESULT($aros_sequence_point)
546 if test "x-$aros_sequence_point" = "x-yes" ; then
547     aros_warnflags_sequence_point=-Wsequence-point
548     aros_nowarnflags_sequence_point=-Wno-sequence-point
551 AC_MSG_CHECKING([whether ${CC} accepts -Wunknown-pragmas])
552 CFLAGS=-Wunknown-pragmas
553 AC_TRY_COMPILE(,, aros_unknown_pragmas="yes", aros_unknown_pragmas="no")
554 AC_MSG_RESULT($aros_unknown_pragmas)
555 if test "x-$aros_unknown_pragmas" = "x-yes" ; then
556     aros_warnflags_unknown_pragmas=-Wunknown-pragmas
557     aros_nowarnflags_unknown_pragmas=-Wno-unknown-pragmas
560 AC_MSG_CHECKING([whether ${CC} accepts -Wdiscarded-array-qualifiers])
561 CFLAGS=-Wdiscarded-array-qualifiers
562 AC_TRY_COMPILE(,, aros_discarded_array_qualifiers="yes", aros_discarded_array_qualifiers="no")
563 AC_MSG_RESULT($aros_discarded_array_qualifiers)
564 if test "x-$aros_discarded_array_qualifiers" = "x-yes" ; then
565     aros_warnflags_discarded_array_qualifiers=-Wdiscarded-array-qualifiers
566     aros_nowarnflags_discarded_array_qualifiers=-Wno-discarded-array-qualifiers
569 AC_MSG_CHECKING([whether ${CC} accepts -Wint-conversion])
570 CFLAGS=-Wint-conversion
571 AC_TRY_COMPILE(,, aros_int_conversion="yes", aros_int_conversion="no")
572 AC_MSG_RESULT($aros_int_conversion)
573 if test "x-$aros_int_conversion" = "x-yes" ; then
574     aros_warnflags_int_conversion=-Wint-conversion
575     aros_nowarnflags_int_conversion=-Wno-int-conversion
578 AC_MSG_CHECKING([whether ${CC} accepts -Wint-to-pointer-cast])
579 CFLAGS=-Wint-to-pointer-cast
580 AC_TRY_COMPILE(,, aros_int_to_pointer_cast="yes", aros_int_to_pointer_cast="no")
581 AC_MSG_RESULT($aros_int_to_pointer_cast)
582 if test "x-$aros_int_to_pointer_cast" = "x-yes" ; then
583     aros_warnflags_int_to_pointer_cast=-Wint-to-pointer-cast
584     aros_nowarnflags_int_to_pointer_cast=-Wno-int-to-pointer-cast
587 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-to-int-cast])
588 CFLAGS=-Wpointer-to-int-cast
589 AC_TRY_COMPILE(,, aros_pointer_to_int_cast="yes", aros_pointer_to_int_cast="no")
590 AC_MSG_RESULT($aros_pointer_to_int_cast)
591 if test "x-$aros_pointer_to_int_cast" = "x-yes" ; then
592     aros_warnflags_pointer_to_int_cast=-Wpointer-to-int-cast
593     aros_nowarnflags_pointer_to_int_cast=-Wno-pointer-to-int-cast
596 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-const-variable])
597 CFLAGS=-Wunused-const-variable
598 AC_TRY_COMPILE(,, aros_unused_const_variable="yes", aros_unused_const_variable="no")
599 AC_MSG_RESULT($aros_unused_const_variable)
600 if test "x-$aros_unused_const_variable" = "x-yes" ; then
601     aros_warnflags_unused_const_variable=-Wunused-const-variable
602     aros_nowarnflags_unused_const_variable=-Wno-unused-const-variable
605 AC_MSG_CHECKING([whether ${CC} accepts -Wwrite-strings])
606 CFLAGS=-Wwrite-strings
607 AC_TRY_COMPILE(,, aros_write_strings="yes", aros_write_strings="no")
608 AC_MSG_RESULT($aros_write_strings)
609 if test "x-$aros_write_strings" = "x-yes" ; then
610     aros_warnflags_write_strings=-Wwrite-strings
611     aros_nowarnflags_write_strings=-Wno-write-strings
614 AC_MSG_CHECKING([whether ${CC} accepts -Wcomment])
615 CFLAGS=-Wcomment
616 AC_TRY_COMPILE(,, aros_comment="yes", aros_comment="no")
617 AC_MSG_RESULT($aros_comment)
618 if test "x-$aros_comment" = "x-yes" ; then
619     aros_warnflags_comment=-Wcomment
620     aros_nowarnflags_comment=-Wno-comment
623 AC_MSG_CHECKING([whether ${CC} accepts -Wincompatible-pointer-types])
624 CFLAGS=-Wincompatible-pointer-types
625 AC_TRY_COMPILE(,, aros_incompatible_pointer_types="yes", aros_incompatible_pointer_types="no")
626 AC_MSG_RESULT($aros_incompatible_pointer_types)
627 if test "x-$aros_incompatible_pointer_types" = "x-yes" ; then
628     aros_warnflags_incompatible_pointer_types=-Wincompatible-pointer-types
629     aros_nowarnflags_incompatible_pointer_types=-Wno-incompatible-pointer-types
632 AC_MSG_CHECKING([whether ${CC} accepts -Wbool-compare])
633 CFLAGS=-Wbool-compare
634 AC_TRY_COMPILE(,, aros_bool_compare="yes", aros_bool_compare="no")
635 AC_MSG_RESULT($aros_bool_compare)
636 if test "x-$aros_bool_compare" = "x-yes" ; then
637     aros_warnflags_bool_compare=-Wbool-compare
638     aros_nowarnflags_bool_compare=-Wno-bool-compare
641 AC_MSG_CHECKING([whether ${CC} accepts -Wlogical-not-parentheses])
642 CFLAGS=-Wlogical-not-parentheses
643 AC_TRY_COMPILE(,, aros_logical_not_parentheses="yes", aros_logical_not_parentheses="no")
644 AC_MSG_RESULT($aros_logical_not_parentheses)
645 if test "x-$aros_logical_not_parentheses" = "x-yes" ; then
646     aros_warnflags_logical_not_parentheses=-Wlogical-not-parentheses
647     aros_nowarnflags_logical_not_parentheses=-Wno-logical-not-parentheses
650 AC_MSG_CHECKING([whether ${CC} accepts -Wpointer-sign])
651 CFLAGS=-Wpointer-sign
652 AC_TRY_COMPILE(,, aros_pointer_sign="yes", aros_pointer_sign="no")
653 AC_MSG_RESULT($aros_pointer_sign)
654 if test "x-$aros_pointer_sign" = "x-yes" ; then
655     aros_warnflags_pointer_sign=-Wpointer-sign
656     aros_nowarnflags_pointer_sign=-Wno-pointer-sign
659 AC_MSG_CHECKING([whether ${CC} accepts -Wshift-overflow])
660 CFLAGS=-Wshift-overflow
661 AC_TRY_COMPILE(,, aros_shift_overflow="yes", aros_shift_overflow="no")
662 AC_MSG_RESULT($aros_shift_overflow)
663 if test "x-$aros_shift_overflow" = "x-yes" ; then
664     aros_warnflags_shift_overflow=-Wshift-overflow
665     aros_nowarnflags_shift_overflow=-Wno-shift-overflow
668 AC_MSG_CHECKING([whether ${CC} accepts -Wframe-address])
669 CFLAGS=-Wframe-address
670 AC_TRY_COMPILE(,, aros_frame_address="yes", aros_frame_address="no")
671 AC_MSG_RESULT($aros_frame_address)
672 if test "x-$aros_frame_address" = "x-yes" ; then
673     aros_warnflags_frame_address=-Wframe-address
674     aros_nowarnflags_frame_address=-Wno-frame-address
677 AC_MSG_CHECKING([whether ${CC} accepts -Wdeprecated-declarations])
678 CFLAGS=-Wdeprecated-declarations
679 AC_TRY_COMPILE(,, aros_deprecated_declarations="yes", aros_deprecated_declarations="no")
680 AC_MSG_RESULT($aros_deprecated_declarations)
681 if test "x-$aros_deprecated_declarations" = "x-yes" ; then
682     aros_warnflags_deprecated_declarations=-Wdeprecated-declarations
683     aros_nowarnflags_deprecated_declarations=-Wno-deprecated-declarations
686 AC_MSG_CHECKING([whether ${CC} accepts -Wsign-compare])
687 CFLAGS=-Wsign-compare
688 AC_TRY_COMPILE(,, aros_sign_compare="yes", aros_sign_compare="no")
689 AC_MSG_RESULT($aros_sign_compare)
690 if test "x-$aros_sign_compare" = "x-yes" ; then
691     aros_warnflags_sign_compare=-Wsign-compare
692     aros_nowarnflags_sign_compare=-Wno-sign-compare
695 AC_MSG_CHECKING([whether ${CC} accepts -Wattributes])
696 CFLAGS=-Wattributes
697 AC_TRY_COMPILE(,, aros_attributes="yes", aros_attributes="no")
698 AC_MSG_RESULT($aros_attributes)
699 if test "x-$aros_attributes" = "x-yes" ; then
700     aros_warnflags_attributes=-Wattributes
701     aros_nowarnflags_attributes=-Wno-attributes
704 AC_MSG_CHECKING([whether ${CC} accepts -Woverflow])
705 CFLAGS=-Woverflow
706 AC_TRY_COMPILE(,, aros_overflow="yes", aros_overflow="no")
707 AC_MSG_RESULT($aros_overflow)
708 if test "x-$aros_overflow" = "x-yes" ; then
709     aros_warnflags_overflow=-Woverflow
710     aros_nowarnflags_overflow=-Wno-overflow
713 AC_MSG_CHECKING([whether ${CC} accepts -Wunused-local-typedefs])
714 CFLAGS=-Wunused-local-typedefs
715 AC_TRY_COMPILE(,, aros_unused_local_typedefs="yes", aros_unused_local_typedefs="no")
716 AC_MSG_RESULT($aros_unused_local_typedefs)
717 if test "x-$aros_unused_local_typedefs" = "x-yes" ; then
718     aros_warnflags_unused_local_typedefs=-Wunused-local-typedefs
719     aros_nowarnflags_unused_local_typedefs=-Wno-unused-local-typedefs
722 AC_MSG_CHECKING([whether ${CC} accepts -Wmissing-braces])
723 CFLAGS=-Wmissing-braces
724 AC_TRY_COMPILE(,, aros_missing_braces="yes", aros_missing_braces="no")
725 AC_MSG_RESULT($aros_missing_braces)
726 if test "x-$aros_missing_braces" = "x-yes" ; then
727     aros_warnflags_missing_braces=-Wmissing-braces
728     aros_nowarnflags_missing_braces=-Wno-missing-braces
731 AC_MSG_CHECKING([whether ${CC} accepts -Wconversion-null])
732 CFLAGS=-Wconversion-null
733 AC_TRY_COMPILE(,, aros_conversion_null="yes", aros_conversion_null="no")
734 AC_MSG_RESULT($aros_conversion_null)
735 if test "x-$aros_conversion_null" = "x-yes" ; then
736     aros_warnflags_conversion_null=-Wconversion-null
737     aros_nowarnflags_conversion_null=-Wno-conversion-null
740 AC_MSG_CHECKING([whether ${CC} accepts -Wnarrowing])
741 CFLAGS=-Wnarrowing
742 AC_TRY_COMPILE(,, aros_narrowing="yes", aros_narrowing="no")
743 AC_MSG_RESULT($aros_narrowing)
744 if test "x-$aros_narrowing" = "x-yes" ; then
745     aros_warnflags_narrowing=-Wnarrowing
746     aros_nowarnflags_narrowing=-Wno-narrowing
749 AC_MSG_CHECKING([whether ${CC} accepts -Wvolatile-register-var])
750 CFLAGS=-Wvolatile-register-var
751 AC_TRY_COMPILE(,, aros_volatile_register_var="yes", aros_volatile_register_var="no")
752 AC_MSG_RESULT($aros_volatile_register_var)
753 if test "x-$aros_volatile_register_var" = "x-yes" ; then
754     aros_warnflags_volatile_register_var=-Wvolatile-register-var
755     aros_nowarnflags_volatile_register_var=-Wno-volatile-register-var
758 AC_MSG_CHECKING([whether ${CC} accepts -Wsizeof-pointer-memaccess])
759 CFLAGS=-Wsizeof-pointer-memaccess
760 AC_TRY_COMPILE(,, aros_sizeof_pointer_memaccess="yes", aros_sizeof_pointer_memaccess="no")
761 AC_MSG_RESULT($aros_sizeof_pointer_memaccess)
762 if test "x-$aros_sizeof_pointer_memaccess" = "x-yes" ; then
763     aros_warnflags_sizeof_pointer_memaccess=-Wsizeof-pointer-memaccess
764     aros_nowarnflags_sizeof_pointer_memaccess=-Wno-sizeof-pointer-memaccess
767 AC_MSG_CHECKING([whether ${CC} accepts -Wreturn-type])
768 CFLAGS=-Wreturn-type
769 AC_TRY_COMPILE(,, aros_return_type="yes", aros_return_type="no")
770 AC_MSG_RESULT($aros_return_type)
771 if test "x-$aros_return_type" = "x-yes" ; then
772     aros_warnflags_return_type=-Wreturn-type
773     aros_nowarnflags_return_type=-Wno-return-type
776 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-zero-length])
777 CFLAGS=-Wformat-zero-length
778 AC_TRY_COMPILE(,, aros_format_zero_length="yes", aros_format_zero_length="no")
779 AC_MSG_RESULT($aros_format_zero_length)
780 if test "x-$aros_format_zero_length" = "x-yes" ; then
781     aros_warnflags_format_zero_length=-Wformat-zero-length
782     aros_nowarnflags_format_zero_length=-Wno-format-zero-length
785 AC_MSG_CHECKING([whether ${CC} accepts -Wlto-type-mismatch])
786 CFLAGS=-Wlto-type-mismatch
787 AC_TRY_COMPILE(,, aros_lto_type_mismatch="yes", aros_lto_type_mismatch="no")
788 AC_MSG_RESULT($aros_lto_type_mismatch)
789 if test "x-$aros_lto_type_mismatch" = "x-yes" ; then
790     aros_warnflags_lto_type_mismatch=-Wlto-type-mismatch
791     aros_nowarnflags_lto_type_mismatch=-Wno-lto-type-mismatch
794 AC_MSG_CHECKING([whether ${CC} accepts -Wtautological-compare])
795 CFLAGS=-Wtautological-compare
796 AC_TRY_COMPILE(,, aros_tautological_compare="yes", aros_tautological_compare="no")
797 AC_MSG_RESULT($aros_tautological_compare)
798 if test "x-$aros_tautological_compare" = "x-yes" ; then
799     aros_warnflags_tautological_compare=-Wtautological-compare
800     aros_nowarnflags_tautological_compare=-Wno-tautological-compare
803 AC_MSG_CHECKING([whether ${CC} accepts -Wempty-body])
804 CFLAGS=-Wempty-body
805 AC_TRY_COMPILE(,, aros_empty_body="yes", aros_empty_body="no")
806 AC_MSG_RESULT($aros_empty_body)
807 if test "x-$aros_empty_body" = "x-yes" ; then
808     aros_warnflags_empty_body=-Wempty-body
809     aros_nowarnflags_empty_body=-Wno-empty-body
812 AC_MSG_CHECKING([whether ${CC} accepts -Wstringop-overflow])
813 CFLAGS=-Wstringop-overflow
814 AC_TRY_COMPILE(,, aros_stringop_overflow="yes", aros_stringop_overflow="no")
815 AC_MSG_RESULT($aros_stringop_overflow)
816 if test "x-$aros_stringop_overflow" = "x-yes" ; then
817     aros_warnflags_stringop_overflow=-Wstringop-overflow
818     aros_nowarnflags_stringop_overflow=-Wno-stringop-overflow
821 AC_MSG_CHECKING([whether ${CC} accepts -Wformat-truncation])
822 CFLAGS=-Wformat-truncation
823 AC_TRY_COMPILE(,, aros_format_truncation="yes", aros_format_truncation="no")
824 AC_MSG_RESULT($aros_format_truncation)
825 if test "x-$aros_format_truncation" = "x-yes" ; then
826     aros_warnflags_format_truncation=-Wformat-truncation
827     aros_nowarnflags_format_truncation=-Wno-format-truncation
831 # export the feature flags...
833 AC_SUBST(aros_cflags_exceptions)
834 AC_SUBST(aros_cflags_permissive)
835 AC_SUBST(aros_cflags_fast_math)
836 AC_SUBST(aros_cflags_no_builtin_floor)
837 AC_SUBST(aros_cflags_lto)
838 AC_SUBST(aros_cflags_nolto)
839 AC_SUBST(aros_cflags_whole_program)
840 AC_SUBST(aros_cflags_loop_block)
841 AC_SUBST(aros_cflags_loop_interchange)
842 AC_SUBST(aros_cflags_loop_strip_mine)
843 AC_SUBST(aros_cflags_peel_loops)
844 AC_SUBST(aros_cflags_unroll_loops)
846 AC_SUBST(aros_cflags_strictaliasing)
847 AC_SUBST(aros_cflags_nostrictaliasing)
849 AC_SUBST(aros_cflags_inlinesmallfunctions)
850 AC_SUBST(aros_cflags_noinlinesmallfunctions)
852 AC_SUBST(aros_cflags_ipacp)
853 AC_SUBST(aros_cflags_noipacp)
855 AC_SUBST(aros_cflags_iquote)
856 AC_SUBST(aros_cflags_iquote_end)
859 # export the feature options...
861 AC_SUBST(aros_cflags_no_red_zone)
864 # ...and warning flags...
866 AC_SUBST(aros_warnflags_error)
867 AC_SUBST(aros_nowarnflags_error)
868 AC_SUBST(aros_warnflags_unused_command_line_argument)
869 AC_SUBST(aros_nowarnflags_unused_command_line_argument)
870 AC_SUBST(aros_warnflags_unknown_warning_option)
871 AC_SUBST(aros_nowarnflags_unknown_warning_option)
872 AC_SUBST(aros_warnflags_unused_but_set_variable)
873 AC_SUBST(aros_nowarnflags_unused_but_set_variable)
874 AC_SUBST(aros_warnflags_strict_aliasing)
875 AC_SUBST(aros_nowarnflags_strict_aliasing)
876 AC_SUBST(aros_warnflags_array_bounds)
877 AC_SUBST(aros_nowarnflags_array_bounds)
878 AC_SUBST(aros_warnflags_enum_compare)
879 AC_SUBST(aros_nowarnflags_enum_compare)
880 AC_SUBST(aros_warnflags_strict_prototypes)
881 AC_SUBST(aros_nowarnflags_strict_prototypes)
882 AC_SUBST(aros_warnflags_strict_overflow)
883 AC_SUBST(aros_nowarnflags_strict_overflow)
884 AC_SUBST(aros_warnflags_format_security)
885 AC_SUBST(aros_nowarnflags_format_security)
886 AC_SUBST(aros_warnflags_misleading_indentation)
887 AC_SUBST(aros_nowarnflags_misleading_indentation)
888 AC_SUBST(aros_warnflags_nonnull_compare)
889 AC_SUBST(aros_nowarnflags_nonnull_compare)
890 AC_SUBST(aros_warnflags_unused)
891 AC_SUBST(aros_nowarnflags_unused)
892 AC_SUBST(aros_warnflags_unused_label)
893 AC_SUBST(aros_nowarnflags_unused_label)
894 AC_SUBST(aros_warnflags_unused_value)
895 AC_SUBST(aros_nowarnflags_unused_value)
896 AC_SUBST(aros_warnflags_unused_variable)
897 AC_SUBST(aros_nowarnflags_unused_variable)
898 AC_SUBST(aros_warnflags_unused_function)
899 AC_SUBST(aros_nowarnflags_unused_function)
900 AC_SUBST(aros_warnflags_unused_parameter)
901 AC_SUBST(aros_nowarnflags_unused_parameter)
902 AC_SUBST(aros_warnflags_uninitialized)
903 AC_SUBST(aros_nowarnflags_uninitialized)
904 AC_SUBST(aros_warnflags_maybe_uninitialized)
905 AC_SUBST(aros_nowarnflags_maybe_uninitialized)
906 AC_SUBST(aros_warnflags_implicit_function_declaration)
907 AC_SUBST(aros_nowarnflags_implicit_function_declaration)
908 AC_SUBST(aros_warnflags_format)
909 AC_SUBST(aros_nowarnflags_format)
910 AC_SUBST(aros_warnflags_parentheses)
911 AC_SUBST(aros_nowarnflags_parentheses)
912 AC_SUBST(aros_warnflags_char_subscripts)
913 AC_SUBST(aros_nowarnflags_char_subscripts)
914 AC_SUBST(aros_warnflags_endif_labels)
915 AC_SUBST(aros_nowarnflags_endif_labels)
916 AC_SUBST(aros_warnflags_format_contains_nul)
917 AC_SUBST(aros_nowarnflags_format_contains_nul)
918 AC_SUBST(aros_warnflags_implicit_int)
919 AC_SUBST(aros_nowarnflags_implicit_int)
920 AC_SUBST(aros_warnflags_aggressive_loop_optimizations)
921 AC_SUBST(aros_nowarnflags_aggressive_loop_optimizations)
922 AC_SUBST(aros_warnflags_cpp)
923 AC_SUBST(aros_nowarnflags_cpp)
924 AC_SUBST(aros_warnflags_switch)
925 AC_SUBST(aros_nowarnflags_switch)
926 AC_SUBST(aros_warnflags_discarded_qualifiers)
927 AC_SUBST(aros_nowarnflags_discarded_qualifiers)
928 AC_SUBST(aros_warnflags_sequence_point)
929 AC_SUBST(aros_nowarnflags_sequence_point)
930 AC_SUBST(aros_warnflags_unknown_pragmas)
931 AC_SUBST(aros_nowarnflags_unknown_pragmas)
932 AC_SUBST(aros_warnflags_discarded_array_qualifiers)
933 AC_SUBST(aros_nowarnflags_discarded_array_qualifiers)
934 AC_SUBST(aros_warnflags_int_conversion)
935 AC_SUBST(aros_nowarnflags_int_conversion)
936 AC_SUBST(aros_warnflags_int_to_pointer_cast)
937 AC_SUBST(aros_nowarnflags_int_to_pointer_cast)
938 AC_SUBST(aros_warnflags_pointer_to_int_cast)
939 AC_SUBST(aros_nowarnflags_pointer_to_int_cast)
940 AC_SUBST(aros_warnflags_unused_const_variable)
941 AC_SUBST(aros_nowarnflags_unused_const_variable)
942 AC_SUBST(aros_warnflags_write_strings)
943 AC_SUBST(aros_nowarnflags_write_strings)
944 AC_SUBST(aros_warnflags_comment)
945 AC_SUBST(aros_nowarnflags_comment)
946 AC_SUBST(aros_warnflags_incompatible_pointer_types)
947 AC_SUBST(aros_nowarnflags_incompatible_pointer_types)
948 AC_SUBST(aros_warnflags_bool_compare)
949 AC_SUBST(aros_nowarnflags_bool_compare)
950 AC_SUBST(aros_warnflags_logical_not_parentheses)
951 AC_SUBST(aros_nowarnflags_logical_not_parentheses)
952 AC_SUBST(aros_warnflags_pointer_sign)
953 AC_SUBST(aros_nowarnflags_pointer_sign)
954 AC_SUBST(aros_warnflags_shift_overflow)
955 AC_SUBST(aros_nowarnflags_shift_overflow)
956 AC_SUBST(aros_warnflags_frame_address)
957 AC_SUBST(aros_nowarnflags_frame_address)
958 AC_SUBST(aros_warnflags_deprecated_declarations)
959 AC_SUBST(aros_nowarnflags_deprecated_declarations)
960 AC_SUBST(aros_warnflags_sign_compare)
961 AC_SUBST(aros_nowarnflags_sign_compare)
962 AC_SUBST(aros_warnflags_attributes)
963 AC_SUBST(aros_nowarnflags_attributes)
964 AC_SUBST(aros_warnflags_overflow)
965 AC_SUBST(aros_nowarnflags_overflow)
966 AC_SUBST(aros_warnflags_unused_local_typedefs)
967 AC_SUBST(aros_nowarnflags_unused_local_typedefs)
968 AC_SUBST(aros_warnflags_missing_braces)
969 AC_SUBST(aros_nowarnflags_missing_braces)
970 AC_SUBST(aros_warnflags_conversion_null)
971 AC_SUBST(aros_nowarnflags_conversion_null)
972 AC_SUBST(aros_warnflags_narrowing)
973 AC_SUBST(aros_nowarnflags_narrowing)
974 AC_SUBST(aros_warnflags_volatile_register_var)
975 AC_SUBST(aros_nowarnflags_volatile_register_var)
976 AC_SUBST(aros_warnflags_sizeof_pointer_memaccess)
977 AC_SUBST(aros_nowarnflags_sizeof_pointer_memaccess)
978 AC_SUBST(aros_warnflags_return_type)
979 AC_SUBST(aros_nowarnflags_return_type)
980 AC_SUBST(aros_warnflags_format_zero_length)
981 AC_SUBST(aros_nowarnflags_format_zero_length)
982 AC_SUBST(aros_warnflags_lto_type_mismatch)
983 AC_SUBST(aros_nowarnflags_lto_type_mismatch)
984 AC_SUBST(aros_warnflags_tautological_compare)
985 AC_SUBST(aros_nowarnflags_tautological_compare)
986 AC_SUBST(aros_warnflags_empty_body)
987 AC_SUBST(aros_nowarnflags_empty_body)
988 AC_SUBST(aros_warnflags_stringop_overflow)
989 AC_SUBST(aros_nowarnflags_stringop_overflow)
990 AC_SUBST(aros_warnflags_format_truncation)
991 AC_SUBST(aros_nowarnflags_format_truncation)
993 AC_CONFIG_FILES(
994     ${aros_targetcfg_dir}/compiler.cfg:compiler.cfg.in
997 AC_OUTPUT