[java] fix installation when configured --with-program-suffix

Matthias Klose doko@cs.tu-berlin.de
Sat Jan 20 18:25:00 GMT 2007


Installation of gcj fails when configured --with-program-suffix. Ok to
checkin?

  Matthias


2007-01-20  Matthias Klose  <doko@debian.org>

	* Makefile.am (install-exec-hook): Use transformed name.
	* Makefile.in: Regenerate.

--- libjava/Makefile.am~	2007-01-20 17:06:05.000000000 +0100
+++ libjava/Makefile.am	2007-01-20 19:27:19.000000000 +0100
@@ -445,10 +445,10 @@
 endif
 if BUILD_ECJ1
 if NATIVE
-	mv $(DESTDIR)$(libexecsubdir)/ecjx$(EXEEXT) $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
+	mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
 else !NATIVE
 ## Undo the prepending of the target prefix
-	mv $(DESTDIR)$(libexecsubdir)/$(target_noncanonical)-ecjx$(EXEEXT) $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
+	mv $(DESTDIR)$(libexecsubdir)/$(target_noncanonical)-`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
 endif !NATIVE
 endif BUILD_ECJ1
 



More information about the Java-patches mailing list