repo.or.cz
/
automake.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* automake.texi (Macros): Document AM_PROG_AS.
[automake.git]
/
tests
/
cond2.test
blob
8e4ee5b3656fab8056f147f4d2eb8c3750f866bf
1
#! /bin/sh
2
3
# Check SUBDIRS set based on conditionals.
4
5
.
$srcdir
/
defs ||
exit
1
6
7
cat
>
configure.
in
<<
'END'
8
AM_INIT_AUTOMAKE
(
nonesuch
,
nonesuch
)
9
AM_CONDITIONAL
(
TEST
,
true
)
10
AC_OUTPUT
(
Makefile
)
11
END
12
13
cat
>
Makefile.am
<<
'END'
14
if
TEST
15
DIR
=
dir1
16
else
17
DIR
=
dir2
18
endif
19
SUBDIRS
=
$
(
DIR
)
20
END
21
22
mkdir dir1
23
24
$AUTOMAKE
&&
exit
1
25
exit
0