Blame SOURCES/gdb-fedora-libncursesw.patch

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