[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: config.status (or something) writes out a crippled libtool script
From: |
Ralf Wildenhues |
Subject: |
Re: config.status (or something) writes out a crippled libtool script |
Date: |
Wed, 24 Aug 2005 16:32:03 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Peter,
* Peter Ekberg wrote on Wed, Aug 24, 2005 at 03:40:42PM CEST:
>
> Something is very broken on cvs HEAD, at least for me.
Acknowledged.
> I have autoconf and automake from cvs as of yesterday after the
> mail by Ralf saying that you need bleeding edge.
>
> This is what I try to do, exactly:
>
> 1. Using Cygwin
> 2. Get a clean cvs copy.
> 3. do a s,/@/,/, on doc/libtool.texi, don't know what's up with my
> makeinfo...
Please show exact error output, plus makeinfo version.
> 4. ./bootstrap
> 5. Switch to MinGW
> 6. mkdir mingw
> 7. cd mingw
> 8. ../configure
*snip*
> config.status: executing libtool commands
>
> 9. ls -l libtool
> -rwxr-xr-x 1 peda Administ 242626 Aug 24 15:23 libtool
>
> Here, the libtool script seems fine.
>
> 10. make
[ triggers ltmain.m4sh -> ltmain.sh recreation ]
> /bin/sh: autom4te: command not found
*snip*
Thanks for this report. Can you try the attached patch? It has the
disadvantage that yet another almost-identical copy of ltmain needs to
be shipped in the tarball. If it works, please also try a `make dist',
extract the tarball in a new directory and try configuring that on mingw
right away. Thanks!
Gary (or someone else), can you check that I did it correctly?
I always get confused with this stamp-vcl thingy.
> No difference. So this second configure fails to produce
> a working configure.
Workaround: configure and make (once after each bootstrap) on cygwin
where autom4te is available. Then you can start configuring on mingw
(in a new tree).
> PS. Should not Makefile.am be added to libltdl/Makefile.am?
..
> Blast, that should have been "added to libltdl/.cvsignore"...
Yep.. I'll add it and ~/manual.html. Thanks.
Cheers,
Ralf
* Makefile.am (ltmain.in, ltmain.sh): Separate rules for these
two targets: autom4te may not be available after bootstrap.
* bootstrap: touch ltmain.in, not ltmain.m4sh.
Reported by Peter Ekberg <address@hidden>.
Index: Makefile.am
===================================================================
RCS file: /cvsroot/libtool/libtool/Makefile.am,v
retrieving revision 1.157
diff -u -r1.157 Makefile.am
--- Makefile.am 23 Aug 2005 01:49:36 -0000 1.157
+++ Makefile.am 24 Aug 2005 14:23:42 -0000
@@ -179,20 +179,21 @@
## should make this rule depend on Makefile but that will break
## distcheck (at least) by rebuilding ltmain.sh in the source
## tree whenever config.status regenerates the Makefile.
-EXTRA_DIST += $(auxdir)/ltmain.sh
-$(srcdir)/$(auxdir)/ltmain.sh: $(sh_files) $(auxdir)/ltmain.m4sh configure.ac \
+EXTRA_DIST += $(auxdir)/ltmain.in $(auxdir)/ltmain.sh
+$(srcdir)/$(auxdir)/ltmain.in: $(sh_files) $(auxdir)/ltmain.m4sh configure.ac \
$(srcdir)/stamp-vcl
+ cd $(srcdir); \
+ rm -f $(auxdir)/ltmain.in; \
+ $(M4SH) -B $(auxdir) $(auxdir)/ltmain.m4sh > $(auxdir)/ltmain.in
+
+$(srcdir)/$(auxdir)/ltmain.sh: $(srcdir)/$(auxdir)/ltmain.in
$(timestamp); \
cd $(srcdir); \
- rm -f $(auxdir)/ltmain.in $(auxdir)/ltmain.tmp \
- $(auxdir)/ltmain.sh; \
- $(M4SH) -B $(auxdir) $(auxdir)/ltmain.m4sh \
- > $(auxdir)/ltmain.in; \
+ rm -f $(auxdir)/ltmain.tmp $(auxdir)/ltmain.sh; \
input="ltmain.m4sh"; \
$(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
-e "s,@package_revision\@,$$1,g" \
$(auxdir)/ltmain.in > $(auxdir)/ltmain.tmp; \
- rm -f $(auxdir)/ltmain.in; \
chmod a-w $(auxdir)/ltmain.tmp; \
mv -f $(auxdir)/ltmain.tmp $(auxdir)/ltmain.sh
Index: bootstrap
===================================================================
RCS file: /cvsroot/libtool/libtool/bootstrap,v
retrieving revision 1.65
diff -u -r1.65 bootstrap
--- bootstrap 23 Aug 2005 11:14:55 -0000 1.65
+++ bootstrap 24 Aug 2005 14:23:43 -0000
@@ -134,7 +134,7 @@
# This file is misgenerated earlier in bootstrap to satisfy automake 1.9.1
# and earlier, but has a new enough timestamp to not be updated. Force it
# to be regenerated at make-time with proper substitutions in place:
-touch $auxdir/ltmain.m4sh
+touch $auxdir/ltmain.in
# Commit script caveat:
cat <<EOF