forked from pool/libedit
ad89b255f6
Copy from devel:libraries:c_c++/libedit based on submit request 25514 from user darix OBS-URL: https://build.opensuse.org/request/show/25514 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=3
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
Index: libedit-20090923-3.0/configure.ac
|
|
===================================================================
|
|
--- libedit-20090923-3.0.orig/configure.ac
|
|
+++ libedit-20090923-3.0/configure.ac
|
|
@@ -20,9 +20,11 @@ AC_PROG_LN_S
|
|
AC_PROG_AWK
|
|
EL_MANTYPE
|
|
|
|
-AC_CHECK_LIB(curses, tgetent,,
|
|
- [AC_CHECK_LIB(ncurses, tgetent,,
|
|
+CURSES=
|
|
+AC_CHECK_LIB(curses, tgetent,[CURSES=curses],
|
|
+ [AC_CHECK_LIB(ncurses, tgetent,[CURSES=ncurses],
|
|
[AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
|
|
+AC_SUBST(CURSES)
|
|
|
|
# Checks for header files.
|
|
AC_FUNC_ALLOCA
|
|
Index: libedit-20090923-3.0/libedit.pc.in
|
|
===================================================================
|
|
--- libedit-20090923-3.0.orig/libedit.pc.in
|
|
+++ libedit-20090923-3.0/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 -lcurses
|
|
+Libs: -L${libdir} -ledit -l@CURSES@
|
|
Cflags: -I${includedir} -I${includedir}/editline
|
|
|
|
Index: libedit-20090923-3.0/examples/Makefile.am
|
|
===================================================================
|
|
--- libedit-20090923-3.0.orig/examples/Makefile.am
|
|
+++ libedit-20090923-3.0/examples/Makefile.am
|
|
@@ -1,5 +1,5 @@
|
|
|
|
-LDADD = $(top_builddir)/src/libedit.la
|
|
+LDADD = $(top_builddir)/src/libedit.la -l@CURSES@
|
|
AM_CFLAGS = -I$(top_srcdir)/src
|
|
|
|
noinst_PROGRAMS = test fileman
|