SHA256
3
0
forked from pool/libedit
libedit/libedit-20100424-3.0-ncurses.patch

38 lines
1.5 KiB
Diff
Raw Normal View History

Index: configure.ac
===================================================================
--- configure.ac.orig 2014-07-28 16:16:14.800585267 +0200
+++ configure.ac 2014-07-28 16:16:17.338585263 +0200
@@ -52,7 +52,7 @@ AC_CHECK_LIB(tinfo, tgetent,,
[AC_CHECK_LIB(termcap, tgetent,,
[AC_CHECK_LIB(termlib, tgetent,,
[AC_CHECK_LIB(curses, tgetent,,
- [AC_CHECK_LIB(ncurses, tgetent,,
+ [AC_CHECK_LIB(ncursesw, tgetent,,
[AC_MSG_ERROR([libcurses or libncurses are required!])]
)]
)]
Index: src/Makefile.am
===================================================================
--- src/Makefile.am.orig 2014-07-28 16:16:14.800585267 +0200
+++ src/Makefile.am 2014-07-28 16:17:25.508585142 +0200
@@ -66,5 +66,6 @@ nobase_include_HEADERS = histedit.h edit
nodist_libedit_la_SOURCES = $(BUILT_SOURCES)
-libedit_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
+libedit_la_CFLAGS = $(shell ncursesw6-config --cflags)
+libedit_la_LDFLAGS = $(shell ncursesw6-config --libs) -no-undefined -version-info $(LT_VERSION)
Index: libedit.pc.in
===================================================================
--- libedit.pc.in.orig 2014-07-28 16:16:14.800585267 +0200
+++ libedit.pc.in 2014-07-28 16:16:17.338585263 +0200
@@ -7,6 +7,6 @@ Name: libedit
Description: command line editor library provides generic line editing, history, and tokenization functions.
Version: @VERSION@
Requires:
-Libs: -L${libdir} -ledit @LIBS@
+Libs: -ledit
Cflags: -I${includedir} -I${includedir}/editline