mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-02-23 15:19:27 +08:00
* mdemo/Makefile.am: ../libltdl is within $(srcdir) * libltdl, Makefile.am: added libltdl (a system independent dlopen wrapper library extracted from mdemo) * ltmain.in: added -module flag for compiling and linking of modules. If enabled it compiles always both .o (with -DLT_RENAME) and .lo files * mdemo: modified mdemo to work with libltdl * tests/ltdl*: added tests for libltdl
22 lines
478 B
Plaintext
22 lines
478 B
Plaintext
dnl Initialize the hell package.
|
|
AC_INIT(ltdl.c)
|
|
AM_INIT_AUTOMAKE(libltdl,1.0)
|
|
|
|
AC_PROG_CC
|
|
AM_PROG_LIBTOOL
|
|
|
|
AC_CHECK_HEADERS(string.h dlfcn.h dl.h)
|
|
|
|
LIBADD_DL=
|
|
AC_CHECK_FUNCS(dlopen, AC_DEFINE(HAVE_LIBDL),
|
|
[AC_CHECK_LIB(dl, dlopen, [AC_DEFINE(HAVE_LIBDL) LIBADD_DL="-ldl"],
|
|
[AC_CHECK_LIB(dld, dld_link, [AC_DEFINE(HAVE_DLD) LIBADD_DL="-ldld"],
|
|
[AC_CHECK_FUNCS(shl_load, AC_DEFINE(HAVE_SHL_LOAD) )]
|
|
)]
|
|
)]
|
|
)
|
|
AC_SUBST(LIBADD_DL)
|
|
|
|
dnl Output the makefile
|
|
AC_OUTPUT(Makefile)
|