summaryrefslogtreecommitdiff
path: root/sys-fs/ocfs2-tools/ncurses.patch
blob: 63f499e9c575d37a67cd55ddc09471422af1dbb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/configure.in b/configure.in
index 031487f0..f405a27c 100644
--- a/configure.in
+++ b/configure.in
@@ -124,14 +124,14 @@ AC_CHECK_HEADER(libaio.h, :,
 AC_SUBST(AIO_LIBS)
 
 NCURSES_LIBS=
-AC_CHECK_LIB(ncurses, tgetstr, NCURSES_LIBS=-lncurses)
+AC_CHECK_LIB(tinfo, tgetstr, NCURSES_LIBS=-ltinfo)
 if test "x$NCURSES_LIBS" = "x"; then
   AC_MSG_ERROR([Unable to find ncurses library])
 fi
 AC_SUBST(NCURSES_LIBS)
 
 saved_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS -lncurses"
+LDFLAGS="$LDFLAGS -ltinfo"
 READLINE_LIBS=
 AC_CHECK_LIB(readline, readline, READLINE_LIBS=-lreadline)
 if test "x$READLINE_LIBS" = "x"; then