libtool/tests/f77demo
Gary V. Vaughan a69688b769 Run our configure.ac files through Autoconf 2.59's autoupdate, and
then tweak the results by hand:

* m4/libtool.m4 (AC_PROG_LD): In common with all the other
AC_PROG_ macros, AC_SUBST the discovered LD.
(AC_PROG_NM): Similarly for NM.
(LT_AC_PROG_SED): Similarly for SED.
* configure.ac: No need to SUBST NM and LD manually any more.
(AC_PREREQ): Conservatively downgrade from 2.59 to 2.54.
* tests/cdemo/configure.ac, tests/demo/configure.ac,
tests/depdemo/configure.ac, tests/f77demo/configure.ac,
tests/mdemo/configure.ac, tests/mdemo2/configure.ac,
tests/pdemo/configure.ac, tests/tagdemo/configure.ac: Ditto.
* m4/libtool.m4 (AM_PROG_LIBTOOL, AM_ENABLE_SHARED,
AM_ENABLE_STATIC, AM_DISABLE_SHARED, AM_DISABLE_STATIC,
AM_PROG_LD, AM_PROG_NM): AU_DEFUN these macros so autoupdate can
use the newer definitions.
2003-11-14 11:12:22 +00:00
..
.cvsignore spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
configure.ac Run our configure.ac files through Autoconf 2.59's autoupdate, and 2003-11-14 11:12:22 +00:00
cprogram.c spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
foo.h spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
fooc.c spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
foof.f spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
fprogram.f spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
Makefile.am * tests/cdemo/Makefile.am, tests/demo/Makefile.am, 2003-10-15 08:09:07 +00:00
README spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00

This is a short demo of the fortran support in libtool.

fprogram is a pure-fortran program which is linked 
against the fortran-only library libfoo.la

cprogram is a C program, which is linked against the
mixed C and fortran library libmix.la. The program
calls a C function, which in turn calls a fortran 
function.

This demo requires GNU autoconf, automake, 
libtool with the F77 tag and quite obvious Fortran 77.