$NetBSD: patch-aa,v 1.2 2002/12/16 15:05:56 itojun Exp $

--- Makefile.orig	Mon Feb  4 10:06:32 2002
+++ Makefile	Tue Dec 17 00:03:27 2002
@@ -83,13 +83,13 @@
 BINDIR		= bin
 LIBEXECDIR	= libexec
 MANDIR		= man
-DESTDIR		= /usr/local
+DESTDIR		= ${PREFIX}
 PRESERVEDIR	= /var/preserve
 
 #
 # A BSD-like install program. GNU install will fit well here, too.
 #
-INSTALL		= /usr/ucb/install
+#INSTALL		= /usr/ucb/install
 
 #
 # Compiler and linker flags.
@@ -169,7 +169,7 @@
 # On System V, the terminfo library may be more accurate than the termcap
 # file. To use it, link against the curses library.
 #
-#TERMLIB	= curses
+TERMLIB	= curses
 #
 # You may also get terminfo access by using the ncurses library.
 #
@@ -178,7 +178,7 @@
 # The preferred choice for ex on Linux and other systems that provide a good
 # termcap file is the 2.11BSD termcap library included here.
 #
-TERMLIB	= termlib
+#TERMLIB	= termlib
 
 #
 # Since ex uses sbrk() internally, a conflict with the libc's version of
