Package: spectemu / 0.94a-19

no-termcap.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From c277da91203920f27b1941bb7fc38d2c7d4a19f2 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Thu, 2 Jan 2014 06:28:19 +0000
Subject: Linking against libreadline does not require -ltermcap

 Pointed out by Sven Joachim.
Forwarded: no
Last-Update: 2011-10-21

Patch-Name: no-termcap.patch
---
 configure.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 76b06fb..ee47c6a 100644
--- a/configure.in
+++ b/configure.in
@@ -134,11 +134,11 @@ AC_ARG_WITH(readline,
 [if test "$withval" = no; then withrl=no; fi])
 
 if test "$withrl" = yes; then
-  AC_CHECK_LIB(readline, readline, have_rl=yes, have_rl=no, -ltermcap)
+  AC_CHECK_LIB(readline, readline, have_rl=yes, have_rl=no)
   if test "$have_rl" = yes; then
     AC_CHECK_HEADER(readline/readline.h, [
       AC_DEFINE(HAVE_READLINE)
-      rllibs="-lreadline -ltermcap"], [
+      rllibs="-lreadline"], [
       AC_MSG_WARN([make sure 'readline.h' is in a 'readline' subdirectory])])
   fi
 fi