mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
5473bb5e38
General reformat and tify up in line with Autoconf-2.50 support. (AC_LTDL_FUNC_ARGZ): Test for system implementations of a handful of argz API calls, the error_t type, and the argz.h header. * libltdl/configure.ac (AM_INIT_AUTOMAKE): Bump version number. * libltdl/ltdl.c (rpl_argz_append, rpl_argz_create_sep. rpl_argz_insert, rpl_rgz_next): Fallback implementations of the similarly named functions for machines that don;t use glibc. (lt_dlrealloc): New memory function pointer that can be set by the client. Defaults to rpl_realloc, which in turn uses only lt_dlmalloc and lt_dlfree. (LT_EMALLOC, LT_EREALLOC): Set internal out-of-memory error inside the functions called by these new macros. Simplified all callers by removing explicit client error reporting. (memmove): Fallback implementation of overlap safe memory copy function. (tryall_dlopen): Factorized common code into... (tryall_dlopen_module): ...this new helper function. (canonicalize_path): Changed function signature to return success or failure. Updated all callers. (foreachfile_callback): Make use of argz API. (LT_DLSTRLEN): Moved from here... * libltdl/ltdl.h (LT_STRLEN): ...to here. Updated all callers. (lt_dlrealloc): Declare new memory management handle.
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
dnl Process this file with autoconf to create configure. -*- autoconf -*-
|
|
|
|
AC_PREREQ(2.50)
|
|
AC_INIT(libltdl, 1.1)
|
|
AC_CONFIG_SRCDIR(ltdl.c)
|
|
|
|
dnl We shouldn't be using these internal macros of autoconf,
|
|
dnl but CONFIG_AUX_DIR($with_auxdir) breaks automake.
|
|
AC_ARG_WITH(auxdir,
|
|
[ --with-auxdir=DIR path to autoconf auxiliary files],
|
|
[AC_CONFIG_AUX_DIRS($with_auxdir)],
|
|
[AC_CONFIG_AUX_DIR_DEFAULT])
|
|
|
|
if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
|
|
if 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
|
|
|
|
AM_INIT_AUTOMAKE(libltdl,1.2,-)
|
|
AM_CONFIG_HEADER(config.h:config-h.in)
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_PROG_CC
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
AC_PROG_LIBTOOL
|
|
AC_SUBST(LIBTOOL_DEPS)
|
|
|
|
AC_LIB_LTDL
|
|
|
|
dnl Output the makefile
|
|
AC_OUTPUT(Makefile)
|