From: Gary V. Vaughan Date: Thu, 29 Jul 2004 19:34:23 +0000 (+0000) Subject: * Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to X-Git-Tag: release-1-9b~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3805a031d950221ef80d9f392ae6c3bee1f9bc76;p=thirdparty%2Flibtool.git * Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to help `make distcheck'; not only do we have to make a copy of ltmain.sh available in the source tree, but we have to be really careful about permission bit twiddling when we copy it across into the possible read-only $(top_srcdir)/config directory! --- diff --git a/ChangeLog b/ChangeLog index 701014fd9..4a94ed52b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2004-07-29 Gary V. Vaughan + * Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to + help `make distcheck'; not only do we have to make a copy of + ltmain.sh available in the source tree, but we have to be really + careful about permission bit twiddling when we copy it across into + the possible read-only $(top_srcdir)/config directory! + * tests/tagtrace.test: Skip this test when running a VPATH build against a read-only source tree (as in distcheck for example), since autoconf wants to write temporary files in $top_srcdir diff --git a/Makefile.am b/Makefile.am index 53b892699..1ae8cb5c8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -96,7 +96,12 @@ install-data-hook: ## VPATH builds because ltmain.sh ends up in the build tree rather ## than the source tree: $(top_srcdir)/config/ltmain.sh: config/ltmain.sh - cp config/ltmain.sh $(top_srcdir)/config/ltmain.sh + -dir=$(top_srcdir)/config; \ + touch $$dir/fnord$$$$ 2>/dev/null || chmod a+w $$dir; \ + rm -f $$dir/ltmain.sh; \ + cp config/ltmain.sh $$dir/ltmain.sh; \ + test -f $$dir/fnord$$$$ && \ + { rm -f $$dir/fnord$$$$; chmod a-w $$dir $$dir/ltmain.sh; } ## Put it in so that automake doesn't choke on reconf. We don't ## really want to distribute this file, but putting it here gives