aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-04-25 20:42:45 +0000
committerMichael Chastain <mec@google.com>2004-04-25 20:42:45 +0000
commit02d6293280974ac9f597c049a62b3b183cd36fa1 (patch)
tree8d622d0f8c007407505d2963f4d6b2654c8eb4bb /gdb/configure.in
parentc79ac407f96f4b786536c7352abad02dfad298d3 (diff)
downloadgdb-02d6293280974ac9f597c049a62b3b183cd36fa1.zip
gdb-02d6293280974ac9f597c049a62b3b183cd36fa1.tar.gz
gdb-02d6293280974ac9f597c049a62b3b183cd36fa1.tar.bz2
2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
Fix PR gdb/1626. * configure.in: Check for curses after termcap. On osf5.*, do not check for ncurses. * configure: Regenerate.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in50
1 files changed, 30 insertions, 20 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 2781b41..f7399ff 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -135,26 +135,6 @@ if test x"$enable_gdbmi" = xyes; then
fi
fi
-# FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
-# Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
-# Makefile fragments. That's why we need to have `Hcurses' before
-# `curses'. I don't see why we should use HP curses if a more
-# standard curses is available, except that according to HP's
-# documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
-# HP-UX 10.10 and 10.20.
-
-AC_SEARCH_LIBS(initscr, [ncurses Hcurses curses pdcurses], [],
- [AC_MSG_WARN([no curses library found])])
-
-# Check whether the wborder function is provided by the curses
-# library detected above. In certain implementations such as
-# the HP/UX Hcurses for instance, this function is provided by an
-# additional library. So if we did not find this function inside
-# the curses library, try some alternate libraries we know might
-# provide it.
-AC_SEARCH_LIBS(wborder, [cur_colr], [],
- [AC_MSG_WARN([wborder function not found, tui will be disabled])])
-
# Enable TUI.
AC_ARG_ENABLE(tui,
[ --enable-tui enable full-screen terminal user interface (TUI)],
@@ -331,6 +311,36 @@ if test "$ac_cv_search_tgetent" = no; then
AC_MSG_ERROR([no termcap library found])
fi
+# FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
+# Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
+# Makefile fragments. That's why we need to have `Hcurses' before
+# `curses'. I don't see why we should use HP curses if a more
+# standard curses is available, except that according to HP's
+# documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
+# HP-UX 10.10 and 10.20.
+
+case $host_os in
+ osf5.*)
+ # ncurses does not work on native alphaev68-dec-osf5.1
+ # -- chastain 2004-04-24
+ AC_SEARCH_LIBS(initscr, [curses], [],
+ [AC_MSG_WARN([no curses library found])])
+ ;;
+ *)
+ AC_SEARCH_LIBS(initscr, [ncurses Hcurses curses pdcurses], [],
+ [AC_MSG_WARN([no curses library found])])
+ ;;
+esac
+
+# Check whether the wborder function is provided by the curses
+# library detected above. In certain implementations such as
+# the HP/UX Hcurses for instance, this function is provided by an
+# additional library. So if we did not find this function inside
+# the curses library, try some alternate libraries we know might
+# provide it.
+AC_SEARCH_LIBS(wborder, [cur_colr], [],
+ [AC_MSG_WARN([wborder function not found, tui will be disabled])])
+
# ------------------------- #
# Checks for header files. #
# ------------------------- #