LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libedit-20100424-3.0-ncurses.patch of Package libedit (Project openSUSE:Factory)

--- configure.ac.orig
+++ configure.ac
@@ -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!])]
                )]
            )]
--- src/Makefile.am.orig
+++ src/Makefile.am
@@ -44,6 +44,7 @@ libedit_la_SOURCES = chared.c common.c e
 							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 \
 							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