Subject: bug#33977: closed (Re: bug#33977: /configure.ac: search for puts() in libtinfow)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 08 Jan 2019 01:49:02 +0000

Your bug report

#33977: /configure.ac: search for puts() in libtinfow

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
33977: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33977
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#33977: /configure.ac: search for puts() in libtinfow
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Mon, 07 Jan 2019 20:48:16 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 27.1

commit a3d52b3
Author: Paul Eggert <[email-masked]>
Date:   Sat Jan 5 09:47:14 2019 -0800

    Port to platforms where tputs is in libtinfow
    
    * configure.ac (tputs_library): Also try tinfow, ncursesw (Bug#33977).

diff --git a/configure.ac b/configure.ac
index 91fa417..e5bd694 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4111,7 +4111,8 @@ AC_DEFUN
   emacs_cv_tputs_lib='none required'
 else
   # curses precedes termcap because of AIX (Bug#9736#35) and OpenIndiana.
-  for tputs_library in '' tinfo ncurses terminfo curses termcap; do
+  tputs_libraries='tinfo ncurses terminfo curses termcap tinfow ncursesw'
+  for tputs_library in '' $tputs_libraries; do
     OLIBS=$LIBS
     if test -z "$tputs_library"; then
       emacs_cv_tputs_lib='none required'

Subject: /configure.ac: search for puts() in libtinfow
From: Дилян Палаузов<[email-masked]>
To: [email-masked]
Date: Fri, 04 Jan 2019 18:06:47 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

on my system I have only the wide variant of ncurses, so I have libncursesw, libtinfow, libformw withot libncurses or
libtinfo.  puts() is in libtinfow. ./confugure fails, as it cannжв find puts() in the libraries it searches.  Fix
follows.

Regards
  Дилян

--- configure.ac~       2018-04-23 14:17:33.000000000 +0000
+++ configure.ac        2019-01-04 17:25:29.203795509 +0000
@@ -4045,7 +4045,7 @@
   emacs_cv_tputs_lib='none required'
 else
   # curses precedes termcap because of AIX (Bug#9736#35) and OpenIndiana.
-  for tputs_library in '' tinfo ncurses terminfo curses termcap; do
+  for tputs_library in '' tinfo ncurses terminfo curses termcap tinfow; do
     OLIBS=$LIBS
     if test -z "$tputs_library"; then
       emacs_cv_tputs_lib='none required'