* autogen: fake the libtool scripts to help fixing
the bootstrapping problem
-
+ * Makefile.am: always configure libltdl, however after building
+ the libtool scripts,
+ build the libtool scripts in builddir, not srcdir
+ (unfortunately this breaks building when srcdir!=objdir,
+ but it was just plain wrong - need's to be fixed),
+ build and install libltdl.tar.gz,
+ copy acinclude.m4 instead of linking them, so that we
+ can 'make dist' in libltdl,
+ fix configuring of subdirectories
+ * configure.in: remove --enable-ltdl-install - libltdl is supposed
+ to be installed by packages, not by libtool itself
+ * libtoolize.in: new flags --ltdl and --ltdl-tar to install libltdl
+ in packages (--ltdl doesn't work yet),
+ install only the necessary libtool scripts, not just all
+ files in pkgdatadir
+ * mdemo/Makefile.am: remove rule for libltdl configuration
+
1999-01-13 Alexandre Oliva <oliva@dcc.unicamp.br>
* mdemo/Makefile.am (../libltdl/libtool): mkdir and configure
AUTOMAKE_OPTIONS = 1.3e gnits readme-alpha
BUILD_SUBDIRS = . doc tests
-SUBDIRS = $(BUILD_SUBDIRS) $(BUILD_LTDL)
+SUBDIRS = $(BUILD_SUBDIRS)
DIST_SUBDIRS = $(BUILD_SUBDIRS) $(CONF_SUBDIRS)
# We need to export these variables when we run ltconfig.
EXTRA_DIST = $(aclocal_macros) libtoolize.in ltconfig.in ltmain.in \
libtool.spec
-CLEANFILES = libtool libtoolize
-MAINTAINERCLEANFILES = ltconfig ltmain.sh
+CLEANFILES = libtool libtoolize ltconfig ltmain.sh
# These are required by libtoolize.
pkgdata_SCRIPTS = config.guess config.sub ltconfig
-pkgdata_DATA = ltmain.sh
+pkgdata_DATA = ltmain.sh libltdl.tar.gz
# This macro file should be visible to Automake's aclocal.
aclocaldir = @aclocaldir@
# The standalone libtool script, and the libtool distributor.
bin_SCRIPTS = libtool libtoolize
-LIBTOOL_DEPS = $(srcdir)/ltmain.sh $(srcdir)/ltconfig
+libltdl.tar.gz: libltdl/Makefile
+ (cd libltdl && $(MAKE) dist)
+ rm -f libltdl.tar.gz
+ ln -s libltdl/libltdl-0.1.tar.gz libltdl.tar.gz
-libtool: $(LIBTOOL_DEPS)
+libtool: ltmain.sh ltconfig
CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
- $(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir) --output=$@ \
- $(srcdir)/ltmain.sh
+ $(SHELL) ltconfig --srcdir=$(srcdir) --output=$@ ltmain.sh
# Experimental C version of libtool.
-clibtool: $(srcdir)/ltmain.c $(srcdir)/ltconfig
+clibtool: $(srcdir)/ltmain.c ltconfig
CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
- $(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir) --output=$@ \
- $(srcdir)/ltmain.c
+ $(SHELL) ltconfig --srcdir=$(srcdir) --output=$@ $(srcdir)/ltmain.c
libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
CONFIG_FILES=libtoolize CONFIG_HEADERS= $(top_builddir)/config.status
# Do line number substitution, as well as PACKAGE and VERSION.
# Line numbering transliterated from a section in autoconf (Autoconf 2.12).
-$(srcdir)/ltconfig: $(srcdir)/ltconfig.in $(top_srcdir)/configure.in
+ltconfig: $(srcdir)/ltconfig.in $(top_srcdir)/configure.in
$(AWK) '/@LINENO@/ { printf "%d:", NR } { print }' $(srcdir)/ltconfig.in | \
sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' \
-e '/@LINENO@/s/^\([0-9][0-9]*\):\(.*\)@LINENO@/\2\1/' > ltconfig.T
chmod +x ltconfig.T
mv -f ltconfig.T $@
-$(srcdir)/ltmain.sh: $(srcdir)/ltmain.in $(top_srcdir)/configure.in
+ltmain.sh: $(srcdir)/ltmain.in $(top_srcdir)/configure.in
sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' $(srcdir)/ltmain.in > ltmain.shT
mv -f ltmain.shT $@
@ACINCLUDE_M4_LIST@: $(srcdir)/libtool.m4
rm -f $@
cd `echo $@ | sed 's,/[^/]*$$,,'` && \
- $(LN_S) `echo $@ | sed -e 's|^$(srcdir)/||' -e 's,[^/]*$$,,' -e 's,[^/][^/]*,..,g'`libtool.m4 acinclude.m4
+ cp $(srcdir)/libtool.m4 acinclude.m4
.PHONY: configure-subdirs
configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
@DIST_MAKEFILE_LIST@:
dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
test -d $$dir || mkdir $$dir || exit 1; \
- (cd $$dir && $(srcdir)/$$dir/configure) || exit 1
+ save=`pwd` && cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$save; \
+ (cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
################################################################
##
automake=
copy=
force=
+ltdl=
+ltdl_tar=
status=0
for arg
-n, --dry-run print commands rather than running them
-f, --force replace existing files
--help display this message and exit
+ --ltdl install libltdl in a subdirectory
+ --ltdl-tar install the libltdl tarball
--version print version information and exit
You must \`cd' to the top directory of your package before you run
force=yes
;;
+ --ltdl)
+ ltdl=yes
+ ltdl_tar=
+ ;;
+
+ --ltdl-tar)
+ ltdl=
+ ltdl_tar=yes
+ ;;
+
-*)
echo "$progname: unrecognized option \`$arg'" 1>&2
echo "$help" 1>&2
exit 1
fi
-files=`cd $pkgdatadir && ls`
-if test -z "$files"; then
+
+if cd $pkgdatadir && ls; then :
+else
echo "$progname: cannot list files in \`$pkgdatadir'" 1>&2
exit 1
fi
+files='config.guess config.sub ltconfig ltmain.sh'
+test "x$ltdl_tar" = xyes && files="$files libltdl.tar.gz"
auxdir=.
auxdirline=`egrep '^AC_CONFIG_AUX_DIR' configure.in 2>/dev/null`