2001-10-06 23:35:17 +08:00
|
|
|
## Process this file with autoconf to create configure. -*- autoconf -*-
|
|
|
|
# Copyright 2001 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
|
|
# 02111-1307 USA
|
1999-03-20 08:27:33 +08:00
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
## FIXME: Is this really new enough? ##
|
Libtool now builds with the help of Autoconf-2.50!
* configure.ac (AC_PREREQ): Require Autoconf-2.50 or newer.
(AC_PROG_CPP, AC_EXEEXT, AC_OBJEXT): Removed. Autoconf-2.50
doesn't have the AC_REQUIRE bug that required these to be called
explicitly from here. Autoconf-2.50 uses this file instead of...
* configure.in: ...this, which is now deleted.
* cdemo/configure.ac, cdemo/configure.in: Ditto.
* demo/configure.ac, demo/configure.in: Ditto.
* depdemo/configure.ac, depdemo/configure.in: Ditto.
* libltdl/configure.ac, libltdl/configure.in: Ditto.
* mdemo/configure.ac, mdemo/configure.in: Ditto.
* pdemo/configure.ac, pdemo/configure.in: Ditto.
* libltdl/acconfig.h: Deleted.
* Makefile.am (libtool): libtool now depends on configure.ac.
* libtool.m4 (_LT_AC_LOCK): Use 2.50's AC_LANG_PUSH/AC_LANG_POP
instead of 2.13's AC_LANG_SAVE/AC_LANG_RESTORE.
(AC_LIBTOOL_LANG_C_CONFIG): Ditto.
(AC_LIBTOOL_LANG_CXX_CONFIG): Ditto.
* libtoolize.in: Use $configure_ac, instead of hardcoding
configure.in.
2001-06-29 06:02:06 +08:00
|
|
|
AC_PREREQ(2.50)
|
1999-12-16 18:42:07 +08:00
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
## ------------------------ ##
|
|
|
|
## Autoconf initialisation. ##
|
|
|
|
## ------------------------ ##
|
|
|
|
AC_INIT([libltdl], [1.2], [bug-libtool@gnu.org])
|
|
|
|
AC_CONFIG_SRCDIR([ltdl.c])
|
|
|
|
|
|
|
|
|
|
|
|
## ------------------------------- ##
|
|
|
|
## Libltdl specific configuration. ##
|
|
|
|
## ------------------------------- ##
|
|
|
|
|
2003-02-25 08:30:28 +08:00
|
|
|
AC_CONFIG_AUX_DIR([.])
|
1999-03-11 04:39:03 +08:00
|
|
|
|
|
|
|
if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
|
2001-04-25 07:22:35 +08:00
|
|
|
if test -f ${srcdir}/ltmain.sh; then
|
1999-03-11 04:39:03 +08:00
|
|
|
# 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
|
|
|
|
|
1998-11-18 15:29:36 +08:00
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
## ------------------------ ##
|
|
|
|
## Automake Initialisation. ##
|
|
|
|
## ------------------------ ##
|
|
|
|
AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION, -)
|
|
|
|
AM_CONFIG_HEADER([config.h:config-h.in])
|
|
|
|
|
|
|
|
|
|
|
|
## ------------------ ##
|
|
|
|
## C compiler checks. ##
|
|
|
|
## ------------------ ##
|
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
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
## ----------------------- ##
|
|
|
|
## Libtool initialisation. ##
|
|
|
|
## ----------------------- ##
|
1999-12-14 00:34:18 +08:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
2001-08-01 14:50:16 +08:00
|
|
|
AC_PROG_LIBTOOL
|
2001-10-06 23:35:17 +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
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
## -------- ##
|
|
|
|
## Outputs. ##
|
|
|
|
## -------- ##
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|