OSDN Git Service

* HACKING: new file
[pf3gnuchains/gcc-fork.git] / libjava / libltdl / configure.in
1 dnl Process this file with autoconf to create configure.
2
3 AC_INIT(ltdl.c)
4
5 dnl We shouldn't be using these internal macros of autoconf,
6 dnl but CONFIG_AUX_DIR($with_auxdir) breaks automake.
7 AC_ARG_WITH(auxdir,
8 [  --with-auxdir=DIR   path to autoconf auxiliary files],
9 [AC_CONFIG_AUX_DIRS($with_auxdir)],
10 [AC_CONFIG_AUX_DIR_DEFAULT])
11
12 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
13   if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
14     # if libltdl is libtoolized, it is assumed to be stand-alone and
15     # installed unless the command line overrides it (tested above)
16     enable_ltdl_install=yes
17   else
18     AC_MSG_WARN([*** The top-level configure must select either])
19     AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].])
20     AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?])
21   fi
22 fi
23
24 AM_INIT_AUTOMAKE(libltdl,1.1,-)
25 AM_CONFIG_HEADER(config.h)
26 AM_MAINTAINER_MODE
27
28 AC_PROG_CC
29 AC_C_CONST
30 AC_C_INLINE
31
32 AC_LIBTOOL_WIN32_DLL
33 AM_PROG_LIBTOOL
34 AC_SUBST(LIBTOOL_DEPS)
35
36 AC_MSG_CHECKING([for garbage collector to use])
37 AC_ARG_ENABLE(java-gc,
38 changequote(<<,>>)dnl
39 <<  --enable-java-gc=TYPE   choose garbage collector [boehm]>>,
40 changequote([,])
41   GC=$enableval,
42   GC=boehm)
43
44 GCINCS=
45 if test "$GC" = "boehm"; then
46    GCINCS='-I$(top_srcdir)/../../boehm-gc -I$(top_builddir)/../../boehm-gc'
47    GCINCS="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
48    AC_DEFINE(HAVE_BOEHM_GC)
49 fi
50 AC_SUBST(GCINCS)
51
52 AC_LIB_LTDL
53
54 dnl Output the makefile
55 AC_OUTPUT(Makefile)
56
57 # Local Variables:
58 # mode:shell-script
59 # sh-indentation:2
60 # End: