#! /bin/sh # Test to make sure the Fortran 77 linker is used when appropriate. # Matthew D. Langston . $srcdir/defs || exit 1 cat >> configure.in << 'END' AC_PROG_F77 END cat > Makefile.am << 'END' bin_PROGRAMS = lavalamp lavalamp_SOURCES = lamp.f END : > lamp.f $ACLOCAL || exit 1 $AUTOMAKE || exit 1 # We should only see the Fortran linker in the rules of `Makefile.in'. # Look for this macro not at the beginning of any line; that will have # to be good enough for now. grep '.\$(F77LINK)' Makefile.in || exit 1 # We should not see these patterns: grep '.\$(CXXLINK)' Makefile.in && exit 1 grep '.\$(LINK)' Makefile.in && exit 1 exit 0