diff options
| author | Valtteri Vuorikoski | 2023-07-13 12:35:51 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-07-15 11:10:03 +0300 |
| commit | b54febef5d735efdc907c5e5cd016bed74e338a8 (patch) | |
| tree | 0fc322963f163400c67ed3901385d81af7546319 | |
| parent | c5fb7301599dc249a877ce65175f2dbc3355b2ec (diff) | |
| download | emacs-b54febef5d735efdc907c5e5cd016bed74e338a8.tar.gz emacs-b54febef5d735efdc907c5e5cd016bed74e338a8.zip | |
Fix NetBSD build with and without ncurses
* configure.ac (netbsd): Don't set TERMINFO=no unless the termcap
library is either -ltermcap or -lcurses. This prevents aborts
because on recent versions of NetBSD libtermcap is actually a
symlink to libterminfo. (Bug#64577)
Copyright-paperwork-exempt: yes
| -rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 19575e80cf4..df74f8cd2f8 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -5212,7 +5212,11 @@ fail; | |||
| 5212 | ;; | 5212 | ;; |
| 5213 | 5213 | ||
| 5214 | netbsd) | 5214 | netbsd) |
| 5215 | if test "x$LIBS_TERMCAP" != "x-lterminfo"; then | 5215 | # NetBSD versions prior to 6.0 lack native terminfo, but have a |
| 5216 | # tputs() built on top of termcap in these libraries. Use native | ||
| 5217 | # termcap instead in this case. NetBSD >= 6.0 has native terminfo | ||
| 5218 | # implementation in -lterminfo. | ||
| 5219 | if test "x$LIBS_TERMCAP" = "x-ltermcap" -o "x$LIBS_TERMCAP" = "x-lcurses"; then | ||
| 5216 | TERMINFO=no | 5220 | TERMINFO=no |
| 5217 | LIBS_TERMCAP="-ltermcap" | 5221 | LIBS_TERMCAP="-ltermcap" |
| 5218 | fi | 5222 | fi |