diff --git a/src/interfaces/ecpg/include/Makefile b/src/interfaces/ecpg/include/Makefile
index 5e15e972ebd752a0e83ce93c700fd6ed1d6049f2..2658dd0048326bddca8344da30d0a0756027b96b 100644
--- a/src/interfaces/ecpg/include/Makefile
+++ b/src/interfaces/ecpg/include/Makefile
@@ -6,9 +6,9 @@ all clean::
 	@echo Nothing to be done.
 
 install::
-	install $(INSTLOPTS) ecpglib.h $(DESTDIR)$(HEADERDIR)	
-	install $(INSTLOPTS) ecpgtype.h $(DESTDIR)$(HEADERDIR)	
-	install $(INSTLOPTS) sqlca.h $(DESTDIR)$(HEADERDIR)	
+	$(INSTALL) $(INSTLOPTS) ecpglib.h $(DESTDIR)$(HEADERDIR)	
+	$(INSTALL) $(INSTLOPTS) ecpgtype.h $(DESTDIR)$(HEADERDIR)	
+	$(INSTALL) $(INSTLOPTS) sqlca.h $(DESTDIR)$(HEADERDIR)	
 
 uninstall::
 	rm -f $(DESTDIR)$(HEADERDIR)/ecpglib.h
diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile
index f7e7304777bc6e7cde28c908d511a5a6f0ba725e..9a170eabb3b490ab4818984623cfc8f167d5c86f 100644
--- a/src/interfaces/ecpg/preproc/Makefile
+++ b/src/interfaces/ecpg/preproc/Makefile
@@ -14,7 +14,7 @@ clean:
 	rm -f *.o core a.out ecpg y.tab.h y.tab.c *~
 
 install: all
-	install -c -m 755 ecpg $(DESTDIR)$(BINDIR)
+	$(INSTALL) $(INSTLOPTS) ecpg $(DESTDIR)$(BINDIR)
 
 uninstall:
 	rm -f $(DESTDIR)$(BINDIR)/ecpg
diff --git a/src/template/.similar b/src/template/.similar
index 2dc78fc075768ebd0f8dd534682bcaa9967073e2..d7c2711c6dd8dd796664c9251cf484379d822d75 100644
--- a/src/template/.similar
+++ b/src/template/.similar
@@ -13,7 +13,7 @@ i486-pc-linux-gnuaout=linux
 i586-pc-linux-gnu=linux-elf
 i586-pc-sco3.2v=sco
 i686-pc-linux-gnu=linux-elf
-mips-sgi-irix=irix
+mips-sgi-irix=irix5
 powerpc-ibm-aix3.2.5=aix_325
 powerpc-ibm-aix4.1.4.0=aix_41
 powerpc-ibm-aix4.1.5.0=aix_41