dnl libltdl is installable
AC_LIBLTDL_INSTALLABLE
+dnl tell Makefile to build ltdl if needed
+if test x"$enable_ltdl_install" = x"yes"; then
+ LTDL_SUBDIRS=libltdl
+fi
+AC_SUBST(LTDL_SUBDIRS)
+
dnl use system-wide libtool, if it exists
AC_ARG_WITH(system-libtool,
[ --with-system-libtool try to use libtool installed in your system [default=use our own]],
esac ]
)
-dnl AC_ARG_ENABLE(ltdl-install,
-dnl [ --disable-ltdl-install do not install libltdl])
-dnl if test x"${enable_ltdl_install+set}" != xset; then
-dnl enable_ltdl_install=yes
-dnl ac_configure_args="$ac_configure_args --enable-ltdl-install"
-dnl fi
-dnl AC_CONFIG_SUBDIRS(libltdl)
-
dnl #
dnl # Allow the user to specify a list of modules to be linked
dnl # statically to the server.
AC_SUBST(LIBLTDL)
AC_SUBST(INCLTDL)
-dnl #
-dnl # Work around stupid autoconf crap
-dnl #
-if test "x$INCLTDL" != "x";then
- INCLTDL='-I${top_builddir}/''libltdl'
-fi
-
dnl import libtool stuff
dnl #############################################################
dnl # Don't change the variable name here. Autoconf goes bonkers
dnl # if you do.
dnl #
-AC_CONFIG_SUBDIRS($mysubdirs)
+AC_CONFIG_SUBDIRS($LTDL_SUBDIRS $mysubdirs)
AC_SUBST(MODULES)
dnl #############################################################