Fix for PR automake/14:
[automake.git] / tests / subobj2.test
blob606b19aab2c2150ac572237e57d969ffa2c8ff0b
1 #! /bin/sh
3 # Test of subdir objects with C++.
5 . $srcdir/defs || exit 1
7 cat >> configure.in << 'END'
8 AC_PROG_CXX
9 END
11 cat > Makefile.am << 'END'
12 AUTOMAKE_OPTIONS = subdir-objects
13 bin_PROGRAMS = wish
14 wish_SOURCES = generic/a.cc generic/b.cxx
15 END
17 : > compile
19 $AUTOMAKE || exit 1
21 fgrep 'generic/a.o' Makefile.in || exit 1
22 grep '[^/]a\.o' Makefile.in && exit 1
23 fgrep -e '-c -o' Makefile.in