blob: ebe419c6a6737e94859d9436f1780c71211de350 (
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
|
#! /bin/sh
# Test for bug in conditionals. From Raja R Harinath.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(foo,0.0)
AM_CONDITIONAL(FALSE, [test x = y])
AC_OUTPUT(Makefile)
END
cat > Makefile.am << 'END'
if FALSE
this=
else
this=is_something_interesting
endif
echo-something:
echo '$(this)'
END
$needs_autoconf
$ACLOCAL \
&& $AUTOCONF \
&& $AUTOMAKE -a \
&& ./configure \
&& $MAKE echo-something | grep interesting > /dev/null
|