1998-12-21 21:04:14 +08:00
|
|
|
dnl Process this file with autoconf to create configure.
|
1999-03-20 08:27:33 +08:00
|
|
|
|
1998-11-18 15:29:36 +08:00
|
|
|
AC_INIT(ltdl.c)
|
1999-12-16 18:42:07 +08:00
|
|
|
|
|
|
|
dnl We shouldn't be using these internal macros of autoconf,
|
|
|
|
dnl but CONFIG_AUX_DIR($with_auxdir) breaks automake.
|
1999-12-15 21:35:21 +08:00
|
|
|
AC_ARG_WITH(auxdir,
|
1999-12-16 18:42:07 +08:00
|
|
|
[ --with-auxdir=DIR path to autoconf auxiliary files],
|
|
|
|
[AC_CONFIG_AUX_DIRS($with_auxdir)],
|
|
|
|
[AC_CONFIG_AUX_DIR_DEFAULT])
|
1999-03-11 04:39:03 +08:00
|
|
|
|
|
|
|
if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
|
|
|
|
if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
|
|
|
|
# if libltdl is libtoolized, it is assumed to be stand-alone and
|
|
|
|
# installed unless the command line overrides it (tested above)
|
|
|
|
enable_ltdl_install=yes
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([*** The top-level configure must select either])
|
|
|
|
AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].])
|
|
|
|
AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1999-01-17 19:19:40 +08:00
|
|
|
AM_INIT_AUTOMAKE(libltdl,1.0,-)
|
1999-02-12 07:48:25 +08:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
1999-01-17 19:19:40 +08:00
|
|
|
AM_MAINTAINER_MODE
|
1998-11-18 15:29:36 +08:00
|
|
|
|
|
|
|
AC_PROG_CC
|
1999-01-20 21:01:27 +08:00
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
1999-12-14 00:34:18 +08:00
|
|
|
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
1999-01-27 13:36:49 +08:00
|
|
|
AM_PROG_LIBTOOL
|
1999-01-18 21:30:43 +08:00
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
1998-11-18 15:29:36 +08:00
|
|
|
|
1999-12-07 18:52:53 +08:00
|
|
|
AC_LIB_LTDL
|
* ltmain.in (-force-static, force_static): removed
* libltdl/Makefile.am (CFLAGS): ditto
* libltdl/configure.in: check for memory.h, rindex() and
dlpreopening. Fixed NEED_USCORE caching policy.
* libltdl/ltdl.h (lt_dlsym): make the name argument const
* libltdl/ltdl.c (types): new variable: head of list of available
dlopening mechanisms
(lt_dltype_t): interface of a dlopening mechanism, with pointers
to functions for init, exit, open, close and sym
(lt_dlhandle_t): added pointer to interface type
(strdup): don't name it strdup; it can be troublesome
(strrchr): ditto; use rindex if available
(LIBTOOL_STATIC): check HAVE_DLPREOPEN instead, and move to the
end of the file, so that it becomes the header of the list
(all): renamed all interface-implementation functions, to avoid
name clashes, and created lt_dltype_t nodes for all of them
(lt_dlinit): initialize all available interfaces; remove those
that fail from the list. Return failure only if no interfaces
could be initialized.
(lt_dlexit): return number of failures
(tryall_dlopen): try to open the library with all available
interfaces
(lt_dlopen): use tryall_dlopen; increased size of fixed buffers.
We should probably make these bound-checked or dynamically
allocated for the final release! Fix bug when filename did not
contain slashes; should we check for `\\' too? Try old_library if
everything else fails.
(lt_dlclose): use the interface type for closing
(lt_dlsym): make `symbol' const, use interface type for looking up
* mdemo/Makefile.am: moved mdemo/modules/* back into mdemo
(SUBDIRS): removed
(libfoo2_la_LDFLAGS): added -static; nice test. However, since it
causes -lm to linked into hell*, it causes tests that should fail
to pass
(noinst_HEADERS): no need to install foo.h
* mdemo/configure.in: remove modules/Makefile
tests/mdemo-exec.test: updated accordingly
1998-12-16 13:42:23 +08:00
|
|
|
|
1998-11-18 15:29:36 +08:00
|
|
|
dnl Output the makefile
|
|
|
|
AC_OUTPUT(Makefile)
|
1998-12-21 21:04:14 +08:00
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# mode:shell-script
|
|
|
|
# sh-indentation:2
|
|
|
|
# End:
|