summaryrefslogtreecommitdiff
path: root/tests/include.test
blob: 179ab612bdb3ccbfb029df16df9fa3e63e1fa621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

# Test to make sure header vars defined only once when including.
# Report from Marcus G. Daniels.

. $srcdir/defs || exit 1

cat > Makefile.am << 'END'
include foo
END

: > foo

$AUTOMAKE || exit 1
len="`grep '^srcdir' Makefile.in | wc -l`"
echo "len = $len"
test $len -eq 1