* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / install2.test
blobd43cedcd1fce7b30162c99de2feacad2d0a1fb24
1 #! /bin/sh
3 # Test for bug in `make dist'
4 # From Pavel Roskin.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AC_INIT
10 dnl Prevent automake from looking in .. and ../..
11 AC_CONFIG_AUX_DIR(.)
12 AM_INIT_AUTOMAKE(foo, 0.1)
13 AC_OUTPUT(Makefile)
14 END
16 cat > Makefile.am << 'END'
17 SUBDIRS = .
18 END
20 # Fail gracefully if no autoconf.
21 $needs_autoconf
23 # Likewise for gzip.
24 (gzip --version) > /dev/null 2>&1 || exit 77
26 $ACLOCAL || exit 1
27 $AUTOCONF || exit 1
28 $AUTOMAKE -a || exit 1
30 chmod 000 Makefile.am
32 ./configure || exit 1
33 # `dist' should fail because we can't copy Makefile.am.
34 $MAKE dist && exit 1
36 exit 0