* tests/Makefile.am (TESTS): Added yacc5.test.
[automake.git] / tests / cond9.test
blobaeca07a9b447dcd99860ce9f61041eef10eaeec5
1 #! /bin/sh
3 # Test for bug in conditionals. From Raja R Harinath.
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AC_INIT(Makefile.am)
9 AM_INIT_AUTOMAKE(foo,0.0)
10 AM_CONDITIONAL(WRONG, [test x = y])
11 AC_OUTPUT(Makefile)
12 END
14 cat > Makefile.am << 'END'
15 if WRONG
16 this=
17 else
18 this=is_something_interesting
19 endif
21 echo-something:
22 echo '$(this)'
23 END
25 $needs_autoconf
27 $ACLOCAL \
28 && $AUTOCONF \
29 && $AUTOMAKE -a \
30 && ./configure \
31 && $MAKE echo-something | grep interesting > /dev/null