aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-01-22 18:30:01 +0000
committerPedro Alves <palves@redhat.com>2015-01-22 18:30:01 +0000
commit03b7960334677d33ee7410f2c819f78820c32024 (patch)
treef952e9aa6feea7d18595a421b216badce1169dfd /gdb/configure
parent6b8a872ff1038e2b8618ea33bb1113b78f39976d (diff)
downloadgdb-03b7960334677d33ee7410f2c819f78820c32024.zip
gdb-03b7960334677d33ee7410f2c819f78820c32024.tar.gz
gdb-03b7960334677d33ee7410f2c819f78820c32024.tar.bz2
mingw32: fix windows-termcap/curses check
When GDB is configured with "--without-tui --with-curses" or "--with-tui", $prefer_curses is set to yes. But, that still doesn't mean that curses will be used. configure will still search for the curses library, and continue building without it. That's done here: curses_found=no if test x"$prefer_curses" = xyes; then ... AC_SEARCH_LIBS(waddstr, [ncurses cursesX curses]) if test "$ac_cv_search_waddstr" != no; then curses_found=yes fi fi So if waddstr is not found, meaning curses is not really available, even though it'd be preferred, $prefer_curses is 'yes', but $curses_found is 'no'. So the right fix to tell whether we're linking with curses is $curses_found=yes. gdb/ChangeLog: 2015-01-22 Pedro Alves <palves@redhat.com> * configure.ac [*mingw32*]: Check $curses_found instead of $prefer_curses. * configure: Regenerate. * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and HAVE_NCURSES_NCURSES_H checks.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/configure b/gdb/configure
index fb2480c..9632f9a 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -7188,7 +7188,7 @@ case $host_os in
ac_cv_search_tgetent="none required"
;;
*mingw32*)
- if test x"$prefer_curses" != xyes; then
+ if test x"$curses_found" != xyes; then
ac_cv_search_tgetent="none required"
CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
fi ;;