* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / depcomp.test
blob35964b5fad831764abe03f230c62c59e8fba645b
1 #! /bin/sh
3 # Test to make sure depcomp is installed and found properly
4 # when required for multiple directories
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
10 PACKAGE=nonesuch
11 VERSION=nonesuch
12 AC_PROG_CC
13 AC_OUTPUT(subdir/Makefile subdir2/Makefile)
14 END
16 rm -f depcomp
17 mkdir subdir
18 mkdir subdir2
20 cat > subdir/Makefile.am << 'END'
21 noinst_PROGRAMS = foo
22 foo_SOURCES = foo.c
23 END
25 cp subdir/Makefile.am subdir2/Makefile.am
27 : > subdir/foo.c
28 : > subdir2/foo.c
30 $ACLOCAL || exit 1
31 $AUTOMAKE --add-missing || exit 1
33 # There used to be a bug where this was created in the first subdir with C
34 # sources in it instead of in $top_srcdir or $ac_auxdir
35 test -f depcomp || exit 1