libtool/tests/depdemo
Gary V. Vaughan 5dfb0ce7e2 Factor out the individual loaders, in preparation for preloading
them as libtool modules.  Currently loader-preopen.c is linked
unconditionally and other appropriate loaders discovered by
AC_LTDL_DLLIB are built and linked in:

* libltdl/Makefile.am (libltdl_la_SOURCES): Add loader-preopen
module.
* m4/ltdl.m4 (AC_LTDL_DLLIB): Use AC_LIBOBJ to add appropriate
loaders to libltdl.
* libltdl/lt_system.h (LT_SCOPE): Moved to here.
* libltdl/ltdl.h (lt_dlloader, lt_user_data, lt_module)
(lt_module_open, lt_module_close, lt_find_sym, lt_dlloader_exit)
(struct lt_user_dlloader, lt_dlloader_next, lt_dlloader_find)
(lt_dlloader_name, lt_dlloader_data, lt_dlloader_add)
(lt_dlloader_remove): Moved declarations...
* libltdl/lt_loader.h: ...to here.
* libltdl/ltdl.c: Include lt_loader.h.  Move loader implementation
code from here...
* libltdl/loader-dld_link.c, libltdl/loader-dlopen.c,
libltdl/loader-dyld.c, libltdl/loader-load_add_on.c,
libltdl/loader-loadlibrary.c, libltdl/loader-preopen.c,
libltdl/loader-shl_load.c: ...to here.
* tests/cdemo/Makefile.am, tests/demo/Makefile.am,
tests/depdemo/Makefile.am, tests/f77demo/Makefile.am,
tests/mdemo/Makefile.am, tests/mdemo2/Makefile.am,
tests/pdemo/Makefile.am, tests/tagdemo/Makefile.am (AM_CPPFLAGS):
Add -I$(top_srcdir)/../.. so that libltdl include files can be
written as #include <libltdl/lt_dlloader.h> and found correctly.
2004-04-13 14:31:05 +00:00
..
l1 Roll back copyright changes. 2004-01-04 20:45:24 +00:00
l2 Roll back copyright changes. 2004-01-04 20:45:24 +00:00
l3 Roll back copyright changes. 2004-01-04 20:45:24 +00:00
l4 Roll back copyright changes. 2004-01-04 20:45:24 +00:00
.cvsignore spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
configure.ac Further sweeping changes to the user interface to libtool from 2004-03-21 16:05:28 +00:00
main.c spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
Makefile.am Factor out the individual loaders, in preparation for preloading 2004-04-13 14:31:05 +00:00
README spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
sysdep.h spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00

This is depdemo, an example package that uses GNU libtool with an
Automake-generated environment to build many interdependent libraries
and a test program.

There are four libraries: l1, l2, l3 and l4.
l1 depends on nothing.
l2 depends on l1.
l3 depends on l1 and l2.
l4 depends on l3 and libm.

The test program uses l1, l2 and l4.