Blame SOURCES/gdb-fedora-libncursesw.patch

e1d87d
Fedora: Force libncursesw over libncurses to match the includes.
e1d87d
https://bugzilla.redhat.com/show_bug.cgi?id=1270534
e1d87d
e1d87d
diff -dup -rup gdb-7.10.50.20151113-orig/gdb/configure gdb-7.10.50.20151113/gdb/configure
e1d87d
--- gdb-7.10.50.20151113-orig/gdb/configure	2015-11-14 16:14:04.404118312 +0100
e1d87d
+++ gdb-7.10.50.20151113/gdb/configure	2015-11-14 16:17:59.074566047 +0100
e1d87d
@@ -8463,6 +8463,7 @@ if test x"$prefer_curses" = xyes; then
e1d87d
   # search /usr/local/include, if ncurses is installed in /usr/local.  A
e1d87d
   # default installation of ncurses on alpha*-dec-osf* will lead to such
e1d87d
   # a situation.
e1d87d
+  # Fedora: Force libncursesw over libncurses to match the includes.
e1d87d
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
e1d87d
 $as_echo_n "checking for library containing waddstr... " >&6; }
e1d87d
 if test "${ac_cv_search_waddstr+set}" = set; then :
e1d87d
@@ -8487,7 +8488,7 @@ return waddstr ();
e1d87d
   return 0;
e1d87d
 }
e1d87d
 _ACEOF
e1d87d
-for ac_lib in '' ncurses cursesX curses; do
e1d87d
+for ac_lib in '' ncursesw; do
e1d87d
   if test -z "$ac_lib"; then
e1d87d
     ac_res="none required"
e1d87d
   else
e1d87d
@@ -8561,6 +8562,7 @@ case $host_os in
e1d87d
 esac
e1d87d
 
e1d87d
 # These are the libraries checked by Readline.
e1d87d
+# Fedora: Force libncursesw over libncurses to match the includes.
e1d87d
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
e1d87d
 $as_echo_n "checking for library containing tgetent... " >&6; }
e1d87d
 if test "${ac_cv_search_tgetent+set}" = set; then :
e1d87d
@@ -8585,7 +8587,7 @@ return tgetent ();
e1d87d
   return 0;
e1d87d
 }
e1d87d
 _ACEOF
e1d87d
-for ac_lib in '' termcap tinfo curses ncurses; do
e1d87d
+for ac_lib in '' termcap tinfo ncursesw; do
e1d87d
   if test -z "$ac_lib"; then
e1d87d
     ac_res="none required"
e1d87d
   else
e1d87d
diff -dup -rup gdb-7.10.50.20151113-orig/gdb/configure.ac gdb-7.10.50.20151113/gdb/configure.ac
e1d87d
--- gdb-7.10.50.20151113-orig/gdb/configure.ac	2015-11-14 16:14:04.404118312 +0100
e1d87d
+++ gdb-7.10.50.20151113/gdb/configure.ac	2015-11-14 16:17:54.898540284 +0100
e1d87d
@@ -771,7 +771,8 @@ if test x"$prefer_curses" = xyes; then
e1d87d
   # search /usr/local/include, if ncurses is installed in /usr/local.  A
e1d87d
   # default installation of ncurses on alpha*-dec-osf* will lead to such
e1d87d
   # a situation.
e1d87d
-  AC_SEARCH_LIBS(waddstr, [ncurses cursesX curses])
e1d87d
+  # Fedora: Force libncursesw over libncurses to match the includes.
e1d87d
+  AC_SEARCH_LIBS(waddstr, [ncursesw])
e1d87d
 
e1d87d
   if test "$ac_cv_search_waddstr" != no; then
e1d87d
     curses_found=yes
e1d87d
@@ -813,7 +814,8 @@ case $host_os in
e1d87d
 esac
e1d87d
 
e1d87d
 # These are the libraries checked by Readline.
e1d87d
-AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses])
e1d87d
+# Fedora: Force libncursesw over libncurses to match the includes.
e1d87d
+AC_SEARCH_LIBS(tgetent, [termcap tinfo ncursesw])
e1d87d
 
e1d87d
 if test "$ac_cv_search_tgetent" = no; then
e1d87d
   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"