Tag
Hash :
d9b98a63
Author :
Date :
1998-10-13T18:51:29
F77 changes + some random fixes * libobj7.test: Updated to reflect minor change in automake (test wasn't resilient enough). * instman.test: Updated to reflect fact that mkinstalldirs will be in distribution. * cxxonly.test: Removed. * Makefile.am (TESTS): Added compile_f_c_cxx.test. * compile_f_c_cxx.test: New file. * Makefile.am (TESTS): Added flink.test link_c_cxx.test link_f_c.test link_f_c_cxx.test link_f_cxx.test link_f_only.test. Removed flink.test. * flibs.test: New File. * link_c_cxx.test: New file. * link_f_c.test: New file. * link_f_c_cxx.test: New file. * link_f_cxx.test: New file. * link_f_only.test: New file. * Makefile.am (TESTS): Add cxxonly.test, fonly.test, flink.test, fnoc.test and fo.test. * cxxonly.test: New file. * fonly.test: New file. * flink.test: New file. * fnoc.test: New file. * fo.test: New file.
#! /bin/sh
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_CXX
AC_PROG_FC
END
cat > Makefile.am << 'END'
bin_PROGRAMS = lavalamp
lavalamp_SOURCES = lava.c lamp.cxx lamp2.f
END
: > lava.c
: > lamp.cxx
: > lamp2.f
$AUTOMAKE || exit 1
# We should only see the C++ 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 '.\$(CXXLINK)' Makefile.in || exit 1
# We should not see these patterns:
grep '.\$(FLINK)' Makefile.in && exit 1
grep '.\$(LINK)' Makefile.in && exit 1
exit 0