diff options
| author | Glenn Morris | 2021-01-04 07:50:25 -0800 |
|---|---|---|
| committer | Glenn Morris | 2021-01-04 07:50:25 -0800 |
| commit | 1395fb8ff7c7e55bc7f5d3c901cb45bd0b3c7c8f (patch) | |
| tree | c3a3d49d2fc678782b42e233ea8e8b94ad491d55 | |
| parent | e8bf7258ae4ef2bfe2c4e09cb00516dd4ccbe214 (diff) | |
| parent | 2e09efdb6877a2c189385be45d4cdceb617b6c5d (diff) | |
| download | emacs-1395fb8ff7c7e55bc7f5d3c901cb45bd0b3c7c8f.tar.gz emacs-1395fb8ff7c7e55bc7f5d3c901cb45bd0b3c7c8f.zip | |
Merge from origin/emacs-27
2e09efdb68 Revert previous patch which was installed into wrong branch.
| -rw-r--r-- | configure.ac | 12 | ||||
| -rw-r--r-- | src/terminfo.c | 6 |
2 files changed, 3 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac index 66c660696b7..bcc0be7de03 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -4393,18 +4393,6 @@ TERMCAP_OBJ=tparam.o | |||
| 4393 | if test $TERMINFO = yes; then | 4393 | if test $TERMINFO = yes; then |
| 4394 | AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.]) | 4394 | AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.]) |
| 4395 | TERMCAP_OBJ=terminfo.o | 4395 | TERMCAP_OBJ=terminfo.o |
| 4396 | AC_CACHE_CHECK([whether $LIBS_TERMCAP library defines BC], | ||
| 4397 | [emacs_cv_terminfo_defines_BC], | ||
| 4398 | [OLD_LIBS=$LIBS | ||
| 4399 | LIBS="$LIBS $LIBS_TERMCAP" | ||
| 4400 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern char *BC;]], [[return !*BC;]])], | ||
| 4401 | [emacs_cv_terminfo_defines_BC=yes], | ||
| 4402 | [emacs_cv_terminfo_defines_BC=no]) | ||
| 4403 | LIBS=$OLD_LIBS]) | ||
| 4404 | if test "$emacs_cv_terminfo_defines_BC" = yes; then | ||
| 4405 | AC_DEFINE([TERMINFO_DEFINES_BC], 1, [Define to 1 if the | ||
| 4406 | terminfo library defines the variables BC, PC, and UP.]) | ||
| 4407 | fi | ||
| 4408 | fi | 4396 | fi |
| 4409 | if test "X$LIBS_TERMCAP" = "X-lncurses"; then | 4397 | if test "X$LIBS_TERMCAP" = "X-lncurses"; then |
| 4410 | AC_DEFINE(USE_NCURSES, 1, [Define to 1 if you use ncurses.]) | 4398 | AC_DEFINE(USE_NCURSES, 1, [Define to 1 if you use ncurses.]) |
diff --git a/src/terminfo.c b/src/terminfo.c index a9c9572bbb2..15aff317f15 100644 --- a/src/terminfo.c +++ b/src/terminfo.c | |||
| @@ -23,10 +23,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 23 | 23 | ||
| 24 | /* Define these variables that serve as global parameters to termcap, | 24 | /* Define these variables that serve as global parameters to termcap, |
| 25 | so that we do not need to conditionalize the places in Emacs | 25 | so that we do not need to conditionalize the places in Emacs |
| 26 | that set them. But don't do that if terminfo defines them, as that | 26 | that set them. But don't do that for terminfo, as that could |
| 27 | could cause link errors when using -fno-common. */ | 27 | cause link errors when using -fno-common. */ |
| 28 | 28 | ||
| 29 | #ifndef TERMINFO_DEFINES_BC | 29 | #if !TERMINFO |
| 30 | char *UP, *BC, PC; | 30 | char *UP, *BC, PC; |
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||