aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/configure.ac
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-10-30 16:41:12 +0000
committerPedro Alves <palves@redhat.com>2018-10-30 16:41:12 +0000
commitc1230d1bab8e36e1aa40f3bbadcef9b5d9ddc041 (patch)
treefe05ffb74fadab41d93dca573578cb9aae216e18 /sim/erc32/configure.ac
parent4d5d104997da3b7beaaf7920caee40dcff8a78d9 (diff)
downloadgdb-c1230d1bab8e36e1aa40f3bbadcef9b5d9ddc041.zip
gdb-c1230d1bab8e36e1aa40f3bbadcef9b5d9ddc041.tar.gz
gdb-c1230d1bab8e36e1aa40f3bbadcef9b5d9ddc041.tar.bz2
[src/erc32] Use ncurses instead of termcap on Cygwin too
This removes a Cygwin-specific libtermcap hack that was dependent on the presence of one of the multiple alternative libraries. The one it was hard-coded to pick isn't included with Cygwin anymore. According to Corinna, libtermcap was removed from Cygwin a long time ago, and libncurses is used in Cygwin for a long time too. The fix is to make Cygwin use the same autoconf code to figure out the correct lib as any other target. sim/erc32/Changelog: 2018-10-30 Joel Sherrill <joel@rtems.org> * configure.ac: Remove the Cygwin-specific libtermcap.a hack and use the standard logic to determine which library to use. * configure: Regenerate.
Diffstat (limited to 'sim/erc32/configure.ac')
-rw-r--r--sim/erc32/configure.ac9
1 files changed, 4 insertions, 5 deletions
diff --git a/sim/erc32/configure.ac b/sim/erc32/configure.ac
index 3135dc5..e4df819 100644
--- a/sim/erc32/configure.ac
+++ b/sim/erc32/configure.ac
@@ -26,12 +26,11 @@ AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
lose
#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
+# Keep in sync with gdb's configure.ac list.
+AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
+ [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
if test x$sim_cv_os_cygwin = xyes; then
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
-else
- # Keep in sync with gdb's configure.ac list.
- AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
- [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
+ TERMCAP="${TERMCAP} -luser32"
fi
AC_SUBST(TERMCAP)