summaryrefslogtreecommitdiff
path: root/tests/cond7.test
blob: 7a257b4b4cb7a3c3f83ea37ad494457071df1363 (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
#! /bin/sh

# Test for an odd conditional bug.  Report from Pavel Roskin.

. $srcdir/defs || exit 1

cat > configure.in << 'END'
AC_INIT()
AM_INIT_AUTOMAKE(test,0.1)
compat=yes
AM_CONDITIONAL(Compatible, test x$compat = xyes)
AC_OUTPUT(Makefile)
END

cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS=foreign
if Compatible
abdir = none
ab_HEADERS = \
        minus.h
endif
END

$AUTOMAKE || exit 1
grep '002' Makefile.in && exit 1
exit 0