$NetBSD: patch-ac,v 1.4 2003/01/19 06:52:55 salo Exp $

--- Makefile.in.orig	Mon Dec 18 04:03:32 2000
+++ Makefile.in
@@ -371,7 +371,7 @@
 ## all.  --cet
 
 check-features: all
-	${blddir}/src/${PROGNAME} -batch -l check-features.el
+	${blddir}/src/${PROGNAME} -vanilla -batch -l check-features.el
 
 install-only: ${MAKE_SUBDIR} check-features install-arch-dep install-arch-indep
 
@@ -445,8 +445,12 @@
 	## Note it's `xemacs' not ${PROGNAME}
 	cd ${srcdir}/etc && \
 	  for page in xemacs etags ctags gnuserv gnuclient gnuattach gnudoit; do \
-	    ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \
-	    chmod 0644 ${mandir}/$${page}${manext} ; \
+	    if [ $${page} = etags ] || [ $${page} = ctags ] ; \
+	    then \
+	      ${BSD_INSTALL_MAN} ${srcdir}/etc/$${page}.1 ${mandir}/xemacs-$${page}${manext} ; \
+	    else \
+	      ${BSD_INSTALL_MAN} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \
+	    fi \
 	  done
 	@echo "If you would like to save approximately 2M of disk space, do"
 	@echo "make gzip-el"
