+1999-01-18 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * Makefile.am (libltdl.tar.gz): don't create it as part of the
+ build, since it is likely to become stale if we do
+ (install-data-hook): create and install libltdl.tar.gz, without
+ depending on GNU tar
+ Reported by Manfred Weichel <Manfred.Weichel@pdb.siemens.de>
+
1999-01-17 Thomas Tanner <tanner@gmx.de>
* Makefile.am: added libltdl.tar.gz to CLEANFILES
# These are required by libtoolize.
pkgdata_SCRIPTS = config.guess config.sub ltconfig
-pkgdata_DATA = ltmain.sh libltdl.tar.gz
+pkgdata_DATA = ltmain.sh
# This macro file should be visible to Automake's aclocal.
aclocaldir = @aclocaldir@
# The standalone libtool script, and the libtool distributor.
bin_SCRIPTS = libtool libtoolize
-libltdl.tar.gz: libltdl/Makefile
- (cd libltdl && $(MAKE) dist)
- rm -f libltdl.tar.gz
- ln -s libltdl/libltdl-1.0.tar.gz libltdl.tar.gz
-
libtool: $(srcdir)/ltmain.sh $(srcdir)/ltconfig
CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
abs_srcdir=`cd $(top_srcdir) >/dev/null && pwd`; \
(cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
+# Create and install libltdl.tar.gz
+install-data-hook: libltdl/Makefile
+ if (cd libltdl && $(MAKE) distdir distdir=libltdl && \
+ tar -cf libltdl.tar libltdl && \
+ gzip $(GZIP_ENV) libltdl.tar); then \
+ $(INSTALL_DATA) libltdl/libltdl.tar.gz $(pkgdatadir)/libltdl.tar.gz; \
+ else \
+ echo Warning: without gzip, libtool cannot install libltdl.tar.gz; \
+ fi; \
+ rm -rf libltdl/libltdl libltdl/libltdl.tar libltdl/libltdl.tar.gz
+
################################################################
##
## Everything past here is useful to the maintainer, but probably not