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
|
|
|
|
|
* update all copyright notices to 2000
* doc/libtool.texi (using libltdl): document new lt_dlinfo struct,
replace NULL with @code{NULL}, document lt_dlsetdata(),
lt_dlgetdata() and lt_dlgetinfo()
* libltdl/Makefile.am: increment interface version number
* libltdl/configure.in: set version number to 1.1
* libltdl/ltdl.c: make some variables public by moving them
to the info struct, add support for application specific data
within module handles, new lt_dlsetdata(), lt_dlgetdata() and
lt_dlgetinfo() functions,
fix memory leaks, minor cleanups
* libltdl/ltdl.h: ditto
* mdemo/main.c: demonstrate use of lt_dlgetinfo,
improved handling of errors
* ltconfig.in: set hardcode_into_libs = yes for GNU/Hurd, Linux
and Solaris, only hardcode *all* run-paths if hardcode_into_libs
is set to 'all', otherwise hardcode only user-specified rpaths
into libraries
* ltmain.in: minor cleanups, we don't need to add user-specified
rpaths to compile_rpath, finalize_rpath is sufficient
* ltconfig.in: transform linux* -> *linux-gnu* _after_ host_os has
been set! (reported by Bruno Haible <haible@ilog.fr>)
* configure.in: AC_SUBST reload_flag, deplibs_check_method
and file_magic_cmd
* README: use 'libtool --version' instead of 'ltconfig --version'
(suggested by Francios Pinard <pinard@iro.umontreal.ca>
2000-01-13 08:28:09 +08:00
|
|
|
AM_INIT_AUTOMAKE(libltdl,1.1,-)
|
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:
|