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!
2004-07-29 Gary V. Vaughan <gary@gnu.org>
+ * 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
## 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