From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Cannot open termcap database Date: Sat, 05 Dec 2009 14:50:40 +0200 Message-ID: <83fx7pk2jj.fsf@gnu.org> References: <7dbe73ed0912031141h781e61d1l18776fb696cc4916@mail.gmail.com> <200912032120.nB3LK3MN028567@godzilla.ics.uci.edu> <200912040453.nB44rwPp002343@godzilla.ics.uci.edu> <200912041717.nB4HHe8H008078@godzilla.ics.uci.edu> <83zl5yk158.fsf@gnu.org> <83iqclkana.fsf@gnu.org> <200912051105.nB5B53wL016307@godzilla.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260017596 22195 80.91.229.12 (5 Dec 2009 12:53:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 12:53:16 +0000 (UTC) Cc: alinsoar@voila.fr, mathias.dahl@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 05 13:53:10 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGu8L-0005Bh-6e for ged-emacs-devel@m.gmane.org; Sat, 05 Dec 2009 13:53:09 +0100 Original-Received: from localhost ([127.0.0.1]:43825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGu8K-0002SV-VO for ged-emacs-devel@m.gmane.org; Sat, 05 Dec 2009 07:53:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGu81-0002E8-QB for emacs-devel@gnu.org; Sat, 05 Dec 2009 07:52:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGu7x-0002C4-SL for emacs-devel@gnu.org; Sat, 05 Dec 2009 07:52:49 -0500 Original-Received: from [199.232.76.173] (port=50860 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGu7x-0002Bu-Ly for emacs-devel@gnu.org; Sat, 05 Dec 2009 07:52:45 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:40634) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGu7x-0004rV-Aq for emacs-devel@gnu.org; Sat, 05 Dec 2009 07:52:45 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0KU600100JHLFG00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 05 Dec 2009 14:52:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.213.252]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KU6001BIJRUKX00@a-mtaout23.012.net.il>; Sat, 05 Dec 2009 14:52:43 +0200 (IST) In-reply-to: <200912051105.nB5B53wL016307@godzilla.ics.uci.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118303 Archived-At: > Date: Sat, 5 Dec 2009 03:05:03 -0800 (PST) > From: Dan Nicolaescu > Cc: Stefan Monnier , alinsoar@voila.fr, > emacs-devel@gnu.org, mathias.dahl@gmail.com > > Eli Zaretskii writes: > > > The MSDOS build does not use the configure script, it uses its own > > config.bat, and relies on src/Makefile.in to mention DOS-specific > > files in MSDOS_OBJ. So if the configure script is modified to never > > use termcap.c and termcap.o is added to MSDOS_OBJ, I think the effect > > is what you suggest above. > > termcap.o would also need to be removed from the setting of termcapobj > in src/Makefile.in > > > Btw, maybe I'm blind, but configure checks only for termcap.h, it > > never references -ltermcap or anything else that has "termcap" as a > > substring. Would removing termcap.h from the script be all that is > > needed for Unix platforms to not use termcap.c? > > No, see above. > And it gets even better: termcap.h is not even used, see src/term.c and src/cm.c: > > /* For now, don't try to include termcap.h. On some systems, > configure finds a non-standard termcap.h that the main build > won't find. */ > > #if defined HAVE_TERMCAP_H && 0 > #include > #else Right. So, taking into consideration what Andreas points out, we will need to: . Move termcap.o from termcapobj to MSDOS_OBJ in src/Makefile.in . Simplify src/Makefile.in under #ifndef LIBS_TERMCAP" in the !TERMINFO case (because both branches will become identical now) . Remove termcap.h from AC_CHECK_HEADERS in configure.in . Remove the above "#if 0" snippet from src/term.c and src/cm.c Anything else I missed?