mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 05:49:05 +08:00
1f4eb17d51
* configure.in: Update boehm-gc include dir for new GC version. * configure: Rebuilt. * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and extern "C" wrapper. * boehm.cc: Update includes for new GC version. MAKE_PROC is now GC_MAKE_PROC. mark_proc is now GC_mark_proc. * posix-threads.cc: Only include <gc.h>. Don't need to wrap with extern "C". From-SVN: r42380
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
dnl Process this file with autoconf to create configure.
|
|
|
|
AC_INIT(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}/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
|
|
|
|
AM_INIT_AUTOMAKE(libltdl,1.1,-)
|
|
AM_CONFIG_HEADER(config.h)
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_PROG_CC
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
AM_PROG_LIBTOOL
|
|
AC_SUBST(LIBTOOL_DEPS)
|
|
|
|
AC_MSG_CHECKING([for garbage collector to use])
|
|
AC_ARG_ENABLE(java-gc,
|
|
changequote(<<,>>)dnl
|
|
<< --enable-java-gc=TYPE choose garbage collector [boehm]>>,
|
|
changequote([,])
|
|
GC=$enableval,
|
|
GC=boehm)
|
|
|
|
GCINCS=
|
|
if test "$GC" = "boehm"; then
|
|
GCINCS='-I$(top_srcdir)/../../boehm-gc/include'
|
|
GCINCS="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
|
|
AC_DEFINE(HAVE_BOEHM_GC)
|
|
fi
|
|
AC_SUBST(GCINCS)
|
|
|
|
AC_LIB_LTDL
|
|
|
|
dnl Output the makefile
|
|
AC_OUTPUT(Makefile)
|
|
|
|
# Local Variables:
|
|
# mode:shell-script
|
|
# sh-indentation:2
|
|
# End:
|