* configure.in: Bump version to 1.5b.
[automake.git] / tests / install2.test
blob1d5d60824d31511178d5bf14c823d455182f6321
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 # On some systems (like DOS and Windows), files are always readable
33 test -r Makefile.am && exit 77
35 ./configure || exit 1
36 # `dist' should fail because we can't copy Makefile.am.
37 $MAKE dist && exit 1
39 exit 0