2011-07-31 23:43:56 +02:00
|
|
|
--- configure.ac.orig
|
|
|
|
+++ configure.ac
|
2012-02-23 20:01:31 +01:00
|
|
|
@@ -48,7 +48,7 @@ AC_CHECK_LIB(terminfo, 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!])]
|
|
|
|
)]
|
|
|
|
)]
|
2011-07-31 23:43:56 +02:00
|
|
|
--- src/Makefile.am.orig
|
|
|
|
+++ src/Makefile.am
|
|
|
|
@@ -44,6 +44,7 @@ libedit_la_SOURCES = chared.c common.c e
|
2012-02-23 20:01:31 +01:00
|
|
|
histedit.h keymacro.h map.h chartype.h parse.h prompt.h read.h refresh.h \
|
|
|
|
search.h sig.h sys.h terminal.h tty.h vis.h filecomplete.h \
|
2011-07-31 23:43:56 +02:00
|
|
|
editline/readline.h
|
|
|
|
+libedit_la_CFLAGS = $(shell ncursesw6-config --cflags)
|
|
|
|
if WIDECHAR
|
|
|
|
libedit_la_SOURCES += eln.c
|
|
|
|
endif
|
|
|
|
@@ -53,5 +54,5 @@ nobase_include_HEADERS = histedit.h edit
|
|
|
|
|
|
|
|
nodist_libedit_la_SOURCES = $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
-libedit_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
|
|
|
|
+libedit_la_LDFLAGS = $(shell ncursesw6-config --libs) -no-undefined -version-info $(LT_VERSION)
|
|
|
|
|
|
|
|
--- libedit.pc.in.orig
|
|
|
|
+++ libedit.pc.in
|
|
|
|
@@ -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
|
|
|
|
|