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