summaryrefslogtreecommitdiff
path: root/tests/canon5.test
blob: 9102bfd9f61ea45d341e01507a77bb0bd144a229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/sh

# Test to make sure that we allow variable names starting in
# non-letters.

. $srcdir/defs || exit 1

echo AC_PROG_CC >> configure.in

cat > Makefile.am << 'END'
bin_PROGRAMS = 123test
123test_SOURCES = 123.c
END

$ACLOCAL || exit 1
$AUTOMAKE || exit 1

cat > Makefile.am << 'END'
bin_PROGRAMS = _foo
_foo_SOURCES = foo.c
END

# Variables starting with `_' are not portable.
$AUTOMAKE -Wno-portability || exit 1

cat > Makefile.am << 'END'
bin_PROGRAMS = ,foo
,foo_SOURCES = foo.c
END

# Variables starting with `_' are not portable.
$AUTOMAKE -Wno-portability && exit 1

cat > Makefile.am << 'END'
bin_PROGRAMS = ,foo
_foo_SOURCES = foo.c
END

# Variables starting with `_' are not portable.
$AUTOMAKE -Wno-portability