source: trunk/essentials/sys-devel/automake-1.4/tests/cond2.test

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 328 bytes
Line 
1#! /bin/sh
2
3# Check SUBDIRS set based on conditionals.
4
5. $srcdir/defs || exit 1
6
7cat > configure.in << 'END'
8AM_INIT_AUTOMAKE(nonesuch, nonesuch)
9AM_CONDITIONAL(TEST, true)
10AC_OUTPUT(Makefile)
11END
12
13cat > Makefile.am << 'END'
14if TEST
15DIR = dir1
16else
17DIR = dir2
18endif
19SUBDIRS = $(DIR)
20END
21
22mkdir dir1
23
24$AUTOMAKE && exit 1
25exit 0
Note: See TracBrowser for help on using the repository browser.