* configure.in: Updated to 1.4d and released.
[automake.git] / tests / compile_f_c_cxx.test
blob2ef19dcd53a753806a450ec775fc34f2b5253019
1 #! /bin/sh
3 # Test to make sure rules to invoke all compilers are selected with
4 # mixed source objects.
5 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
7 . $srcdir/defs || exit 1
9 cat >> configure.in << 'END'
10 AC_PROG_CC
11 AC_PROG_CXX
12 AC_PROG_F77
13 AC_F77_LIBRARY_LDFLAGS
14 END
16 cat > Makefile.am << 'END'
17 bin_PROGRAMS = foo
18 foo_SOURCES = foo.f bar.c baz.cc
19 foo_LDADD = @FLIBS@
20 END
22 : > foo.f
23 : > bar.c
24 : > baz.cc
26 $AUTOMAKE || exit 1
29 # Look for the macros at the beginning of rules. Be careful, as there
30 # are literal tabs at the beginning of the search strings.
31 grep ' \$(COMPILE)' Makefile.in || exit 1
32 grep ' \$(CXXCOMPILE)' Makefile.in || exit 1
33 grep ' \$(F77COMPILE)' Makefile.in || exit 1
35 exit 0