Tag
Hash :
9e717671
Author :
Date :
2002-07-09T19:12:32
* automake.texi (Invoking Automake): Document WARNINGS. * automake.in (switch_warning, parse_WARNINGS): New function. (setup_warnings): Rename to ... (parse_warnings): ... this. Move most of the code to switch_warning. Accept a comma separated list of categories. * tests/vars2.test: Use a comma separated list of warning categories.
#! /bin/sh
# Check that Automake warns about variables starting with `_'.
# PR/291
. $srcdir/defs || exit 1
set -e
cat >Makefile.am <<EOF
GOOD_ = 1
_BAD = 2
_bad = 3
EOF
$ACLOCAL
# Make sure this warning is print in the `portability' category.
$AUTOMAKE --warnings=no-error,none,portability 2>stderr
cat stderr
grep GOOD stderr && exit 1
grep _BAD stderr
grep _bad stderr