* configure.in: Updated to 1.4d and released.
[automake.git] / tests / install2.test
blob9980e119f6d98602e9a836d69ba6d55f7095d21c
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 # Remove some dummy files added by defs.
21 rm -f install-sh mkinstalldirs missing
23 # Fail gracefully if no autoconf.
24 $needs_autoconf
26 # Likewise for gzip.
27 (gzip --version) > /dev/null 2>&1 || exit 0
29 $ACLOCAL || exit 1
30 $AUTOCONF || exit 1
31 $AUTOMAKE -a || exit 1
33 chmod 000 Makefile.am
35 ./configure || exit 1
36 # `dist' should fail because we can't copy Makefile.am.
37 $MAKE dist && exit 1
39 exit 0