gcc 3.4 make install problem

Christian Cornelssen ccorn@cs.tu-berlin.de
Thu Jan 30 17:36:00 GMT 2003


On Wed, 29 Jan 2003, urs wrote:

> On Wed, Jan 29, 2003 at 04:25:09AM +0100, Christian Cornelssen wrote:
> > AC_SUBST & Co. would also be needed.  The (more) complete patch
> > is in the attachment.  Feedback requested :-)
>
> that fixes the non-VPATH-build install problem for gcc-3.4 and gcc-3.3.

On Wed, 29 Jan 2003, DJ Delorie wrote:

> Looks good so far, but needs a changelog entry...

Here is one:

Index: libiberty/ChangeLog
from  Christian Cornelssen  <ccorn@cs.tu-berlin.de>

	Fixes for non-VPATH-build install problem reported
	by Urs Janssen.

	* Makefile.in (libiberty_topdir): New subst.
	(mkinstalldirs): Redefine in terms of the above.
	* configure.in: AC_SUBST it.
	* configure: Regenerate.

I have attached the diff again (it's the same as before).
Note that "libiberty/configure" must be regenerated (Autoconf-2.13).
Thanks to Urs for reporting and testing.

TODO: The *.texi definitions in `libiberty/Makefile.in' probably need
similar tweaks.

Regards,

Christian Cornelssen
-------------- next part --------------
Index: libiberty/Makefile.in
===================================================================
RCS file: /usr/local/src/cvs/gcc-cvs/gcc/libiberty/Makefile.in,v
retrieving revision 1.84
diff -u -r1.84 Makefile.in
--- libiberty/Makefile.in	28 Jan 2003 21:52:14 -0000	1.84
+++ libiberty/Makefile.in	29 Jan 2003 03:21:10 -0000
@@ -26,6 +26,7 @@
 # Makefile for libiberty directory
 #
 
+libiberty_topdir = @libiberty_topdir@
 srcdir = @srcdir@
 VPATH = @srcdir@
 
@@ -50,7 +51,7 @@
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
-mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs
+mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
 
 # Some compilers can't handle cc -c blah.c -o foo/blah.o.
 OUTPUT_OPTION = @OUTPUT_OPTION@
Index: libiberty/configure.in
===================================================================
RCS file: /usr/local/src/cvs/gcc-cvs/gcc/libiberty/configure.in,v
retrieving revision 1.54
diff -u -r1.54 configure.in
--- libiberty/configure.in	24 Jan 2003 23:23:18 -0000	1.54
+++ libiberty/configure.in	29 Jan 2003 03:18:01 -0000
@@ -35,6 +35,7 @@
 else
   libiberty_topdir="${srcdir}/.."
 fi
+AC_SUBST(libiberty_topdir)
 AC_CONFIG_AUX_DIR($libiberty_topdir)
 
 dnl Very limited version of automake's enable-maintainer-mode


More information about the Gcc-bugs mailing list