$NetBSD: patch-ab,v 1.7 2004/11/19 13:01:46 adam Exp $

--- Makefile.in.orig	2004-10-02 13:29:43.000000000 +0000
+++ Makefile.in
@@ -215,7 +215,7 @@ LIBGMP = @LIBGMP@
 LIBICONV = @LIBICONV@
 LIBLTDL = @LIBLTDL@
 LIBOBJS = @LIBOBJS@
-LIBREADLINE = @LIBREADLINE@
+LIBREADLINE = @LIBREADLINE@ -lreadline -ltermcap
 LIBS = @LIBS@
 LIBSNPRINTFV = @LIBSNPRINTFV@
 LIBTCLTK = @LIBTCLTK@
@@ -319,7 +319,7 @@ noinst_DATA = gst.im
 dist_noinst_DATA = smalltalk-mode.el.in gst-mode.el.in
 bin_SCRIPTS = gst-package gst-config
 gst_SOURCES = main.c
-gst_LDADD = libgst/libgst.la @ICON@
+gst_LDADD = libgst/libgst.la $(LIBGMP) $(LIBLTDL) $(LIBREADLINE) $(LIBSNPRINTFV)
 gst_LDFLAGS = -export-dynamic
 gst_DEPENDENCIES = libgst/libgst.la @ICON@
 INCLUDES = -I$(top_srcdir)/libgst
