* lib/am/distdir.am (distdir): Handle subdirectories.
[platform/upstream/automake.git] / tests / link_f_c.test
1 #! /bin/sh
2
3 # Test to make sure the Fortran 77 linker is used when appropriate.
4 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
5
6 . $srcdir/defs || exit 1
7
8 cat >> configure.in << 'END'
9 AC_PROG_CC
10 AC_PROG_F77
11 END
12
13 cat > Makefile.am << 'END'
14 bin_PROGRAMS = lavalamp
15 lavalamp_SOURCES = lava.c lamp.f
16 END
17
18 : > lava.c
19 : > lamp.f
20
21 $ACLOCAL || exit 1
22 $AUTOMAKE || exit 1
23
24
25 # We should only see the Fortran 77 linker in the rules of
26 # `Makefile.in'.
27
28 # Look for this macro not at the beginning of any line; that will have
29 # to be good enough for now.
30 grep '.\$(F77LINK)' Makefile.in  || exit 1
31
32 # We should not see these patterns:
33 grep '.\$(LINK)'    Makefile.in && exit 1
34 grep '.\$(CXXLINK)' Makefile.in && exit 1
35
36 exit 0