* configure.in: Upped to version 1.4k.
[automake.git] / tests / depcomp2.test
blob54e4bdae4752bd5284a90fdb4668a9f9d8a03148
1 #! /bin/sh
3 # Test to make sure that depcomp is not used when it's not installed
4 # From Pavel Roskin.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AC_INIT(subdir/foo.c)
10 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
11 PACKAGE=nonesuch
12 VERSION=nonesuch
13 AC_PROG_CC
14 AC_OUTPUT(Makefile subdir/Makefile)
15 END
17 cat > Makefile.am << 'END'
18 SUBDIRS = subdir
19 END
21 rm -f depcomp
22 mkdir subdir
24 cat > subdir/Makefile.in << 'END'
25 foo:
26 $(CC) -o foo foo.c
27 END
29 : > subdir/foo.c
31 # Fail gracefully if no autoconf.
32 $needs_autoconf
34 # Likewise for gcc.
35 (gcc -v) > /dev/null 2>&1 || exit 77
37 $ACLOCAL || exit 1
38 $AUTOMAKE --add-missing || exit 1
39 $AUTOCONF || exit 1
40 CC='gcc' ./configure 2>error.log
41 test -z "`cat error.log`"