* configure.in: Updated to 1.4d and released.
[automake.git] / tests / subdir4.test
blob76cfee2742873e3570031b5d217bd45177c6ed51
1 #! /bin/sh
3 # Make sure a top-level depcomp file is found when
4 # AC_CONFIG_AUX_DIR is not specified.
6 . $srcdir/defs || exit 1
8 mkdir lib src
10 cat > configure.in << 'END'
11 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
12 PACKAGE=nonesuch
13 VERSION=nonesuch
14 AC_ARG_PROGRAM
15 AC_PROG_MAKE_SET
16 AC_PROG_INSTALL
17 AC_PROG_RANLIB
18 AC_PROG_CC
19 AC_OUTPUT(Makefile lib/Makefile src/Makefile)
20 END
22 # Files required because we are using `--gnu'.
23 : > INSTALL
24 : > NEWS
25 : > README
26 : > COPYING
27 : > AUTHORS
28 : > ChangeLog
30 cat > Makefile.am << 'END'
31 SUBDIRS = lib src
32 END
34 cat > lib/Makefile.am << 'END'
35 pkgdata_DATA =
36 noinst_LIBRARIES = libfoo.a
37 libfoo_a_SOURCES = foo.c
38 END
40 cat > lib/foo.c << 'END'
41 int foo () {}
42 END
44 cat > src/Makefile.am << 'END'
45 pkgdata_DATA =
46 END
48 $AUTOMAKE --gnu || exit 1
50 # Make sure that depcomp is *not* included in the definition
51 # of DIST_COMMON in lib/Makefile.in. If you change this test
52 # so that more files are included in lib's DIST_COMMON definition,
53 # then you must handle the case in which depcomp is listed on a
54 # continued line.
55 grep '^DIST_COMMON.*depcomp' lib/Makefile.in && exit 1
57 exit 0