#
AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign
-DIST_SUBDIRS = compat lib snmplib scripts src icons errors contrib doc helpers test-suite tools
-SUBDIRS = compat lib @makesnmplib@ scripts src icons errors doc helpers test-suite tools
+DIST_SUBDIRS = compat lib libltdl snmplib scripts src icons errors contrib doc helpers test-suite tools
+SUBDIRS = compat lib @makesnmplib@
+if USE_LOADABLE_MODULES
+SUBDIRS += libltdl
+endif
+SUBDIRS += scripts src icons errors doc helpers test-suite tools
DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
# instead of manualy moving files from ltdl to lib/libLtdl
if egrep -q '^[[:space:]]*AC_LIBLTDL_' configure.in
then
- if libtoolize$ltver --help | grep -q -- --ltdl.=; then
- ltdl="--ltdl=lib/libLtdl"
- else
- ltdl="--ltdl"
- copy_libltdl=1
- fi
+ ltdl="--ltdl"
else
ltdl=""
fi
bootstrap libtoolize$ltver $ltdl --force --copy --automake
# customize generated libltdl, if any
- if test -d libltdl && [ $copy_libltdl ]
+ if test -d libltdl
then
src=libltdl
chmod u+w $makefile
mv $makefile.new $makefile
chmod u-w $makefile
-
- dest=lib/libLtdl
- # move $src to $dest
- if test -d $dest # already exists
- then
- echo "Updating $dest from $src."
- chmod u+w $dest/*
- mv $src/* $dest/
- rmdir $src
- else
- echo "Creating $dest from $src."
- mv $src $dest
- fi
fi
}
top_build_prefix=${ac_top_build_prefix}
AC_SUBST(top_build_prefix)
- AC_LIBLTDL_CONVENIENCE(lib/libLtdl)
+ AC_LIBLTDL_CONVENIENCE
fi
AC_PROG_LIBTOOL
AC_LTDL_DLLIB
AC_CONFIG_SUBDIRS(lib/libTrie)
# must configure libltdl subdir unconditionally for "make distcheck" to work
-AC_CONFIG_SUBDIRS(lib/libLtdl)
+AC_CONFIG_SUBDIRS(libltdl)
AC_OUTPUT
SUBDIRS =
-if USE_LOADABLE_MODULES
-SUBDIRS += libLtdl
-endif
-
if USE_ESI
SUBDIRS += libTrie
endif
#define XSTD_USE_LIBLTDL 1
#if XSTD_USE_LIBLTDL
-#include "libLtdl/ltdl.h" /* generated file */
+#include "libltdl/ltdl.h" /* generated file */
#else
#include <dlfcn.h>
#endif
ip/libip.la \
fs/libfs.la
-## Loadable Modules needs lib/libLtdl stuff
-INCLUDES += -I$(top_srcdir)/lib -I$(top_srcdir)/lib/libLtdl
-
EXTRA_PROGRAMS = \
DiskIO/DiskDaemon/diskd \
unlinkd \