* configure.in: Upped to version 1.4k.
[automake.git] / tests / yacc6.test
blob3f2434c73e4241d3613da87b926d2ddfea10ff26
1 #! /bin/sh
3 # Test to make sure ylwrap put in right location.
4 # Report from Tim Van Holder.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AC_INIT
10 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
11 AC_ARG_PROGRAM
12 AC_PROG_INSTALL
13 AC_PROG_MAKE_SET
14 AC_PROG_CC
15 AC_PROG_YACC
16 AC_OUTPUT(Makefile sub/Makefile)
17 END
19 cat > Makefile.am << 'END'
20 SUBDIRS = sub
21 END
23 mkdir sub
25 cat > sub/Makefile.am << 'END'
26 bin_PROGRAMS = foo
27 foo_SOURCES = foo.y bar.y
28 END
30 : > sub/foo.y
31 : > sub/bar.y
33 $ACLOCAL || exit 1
34 $AUTOMAKE -a || exit 1
35 test -f ylwrap || exit 1
36 fgrep '(srcdir)/ylwrap' sub/Makefile.in && exit 1
37 exit 0