$NetBSD: patch-ac,v 1.5 1998/08/09 21:23:29 kim Exp $

--- Makefile.in.orig	Tue Mar 25 22:47:43 1997
+++ Makefile.in	Sun Aug  9 17:05:07 1998
@@ -36,7 +36,7 @@
 # Where the ircII library will be.  Generally this is the place that
 # you put the scripts, help pages and translation tables.  It is
 # very important that you set this correctly.
-IRCLIB = @IRCLIB@
+IRCLIB = @datadir@/irc
 
 # Set this to the lex you want to use, and if they lex uses a library.
 
@@ -132,8 +132,8 @@
 LN = @LN@
 CP = cp
 MV = mv
-INSTALL = ./bsdinstall -c -m 755
-INSTALL_DATA = ../bsdinstall -c -m 644
+INSTALL = $(BSD_INSTALL_PROGRAM)
+INSTALL_DATA = $(BSD_INSTALL_DATA)
 
 VERSION = @VERSION@
 
@@ -186,11 +186,9 @@
 
 installirc: irc installdirs
 	$(INSTALL) source/irc $(INSTALL_IRC)-$(VERSION)
-	$(INSTALL) ircbug $(bindir)/ircbug
-	@if test -f $(INSTALL_IRC).old; then $(RM) $(INSTALL_IRC).old; fi
-	@if test -f $(INSTALL_IRC); then $(MV) $(INSTALL_IRC) $(INSTALL_IRC).old; fi
+	$(BSD_INSTALL_SCRIPT) ircbug $(bindir)/ircbug
 	$(RM) $(INSTALL_IRC)
-	$(LN) $(INSTALL_IRC)-$(VERSION) $(INSTALL_IRC)
+	cd ${bindir}; $(LN) irc-$(VERSION) irc
 
 installscript: installdirs
 	-chmod -x script/*
