* automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
[automake.git] / tests / vars2.test
blob35e1acdf0379dc55bb38f17de32a18200d17f613
1 #! /bin/sh
2 # Copyright (C) 2002 Free Software Foundation, Inc.
4 # This file is part of GNU Automake.
6 # GNU Automake is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
11 # GNU Automake is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with autoconf; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
21 # Check that Automake warns about variables starting with `_'.
22 # PR/291
24 . ./defs || exit 1
26 set -e
28 cat >Makefile.am <<EOF
29 GOOD_ = 1
30 _BAD = 2
31 _bad = 3
32 EOF
34 $ACLOCAL
35 # Make sure this warning is print in the `portability' category.
36 $AUTOMAKE --warnings=no-error,none,portability 2>stderr
37 cat stderr
38 grep GOOD stderr && exit 1
39 grep _BAD stderr
40 grep _bad stderr