* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / cond2.test
blob8e4ee5b3656fab8056f147f4d2eb8c3750f866bf
1 #! /bin/sh
3 # Check SUBDIRS set based on conditionals.
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
9 AM_CONDITIONAL(TEST, true)
10 AC_OUTPUT(Makefile)
11 END
13 cat > Makefile.am << 'END'
14 if TEST
15 DIR = dir1
16 else
17 DIR = dir2
18 endif
19 SUBDIRS = $(DIR)
20 END
22 mkdir dir1
24 $AUTOMAKE && exit 1
25 exit 0