338 |
# Maybe some day we will have proper Autoconf macros to disable these |
# Maybe some day we will have proper Autoconf macros to disable these |
339 |
# warnings, but this place is not the right one for that. |
# warnings, but this place is not the right one for that. |
340 |
# So let's keep only GCC warnings, which we know are sane. |
# So let's keep only GCC warnings, which we know are sane. |
341 |
AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [stderr]) |
# Well, that's only part of the story: some assemblers issue warnings |
342 |
AT_CHECK([if test "$GCC" = yes; then cat stderr; else true; fi]) |
# which can be totally useless, and actually polluting. It seems that |
343 |
|
# the best bet be to completely ignore stderr, but to pass -Werror |
344 |
|
# to GCC. |
345 |
|
if test "$GCC" = yes; then |
346 |
|
CFLAGS="$CFLAGS -Werror" |
347 |
|
fi |
348 |
|
AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [ignore]) |
349 |
|
|
350 |
# Test the priorities. |
# Test the priorities. |
351 |
_AT_CHECK_CALC([$1], |
_AT_CHECK_CALC([$1], |
383 |
[2.0:2.1], |
[2.0:2.1], |
384 |
[unexpected `'+'']) |
[unexpected `'+'']) |
385 |
|
|
386 |
AT_CLEANUP(calc calc.c calc.h calc.output) |
AT_CLEANUP |
387 |
])# AT_CHECK_CALC |
])# AT_CHECK_CALC |
388 |
|
|
389 |
|
|