From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Vincent_Bela=EFche?= Newsgroups: gmane.emacs.devel Subject: RE: Patch to allow texi2any for EMACS manual compilation Date: Mon, 22 Sep 2014 20:27:22 +0200 Message-ID: <80tx3zecj9.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1411410510 25572 80.91.229.3 (22 Sep 2014 18:28:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2014 18:28:30 +0000 (UTC) Cc: =?iso-8859-1?Q?Vincent_Bela=EFche?= , pertusus@free.fr, Karl Berry To: EMACS devel list , Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 22 20:28:24 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XW8LU-0000js-34 for ged-emacs-devel@m.gmane.org; Mon, 22 Sep 2014 20:28:20 +0200 Original-Received: from localhost ([::1]:48232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8LT-0002Ry-Ln for ged-emacs-devel@m.gmane.org; Mon, 22 Sep 2014 14:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8LC-0002Qj-W9 for emacs-devel@gnu.org; Mon, 22 Sep 2014 14:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW8L8-0007lR-JN for emacs-devel@gnu.org; Mon, 22 Sep 2014 14:28:02 -0400 Original-Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:30794 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8L8-0007kh-9d for emacs-devel@gnu.org; Mon, 22 Sep 2014 14:27:58 -0400 Original-Received: from CHOUNEK ([90.32.172.128]) by mwinf5d13 with ME id uJTc1o00R2maGi203JTgSg; Mon, 22 Sep 2014 20:27:52 +0200 X-ME-Helo: CHOUNEK X-ME-Date: Mon, 22 Sep 2014 20:27:52 +0200 X-ME-IP: 90.32.172.128 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.129 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174655 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Answers below, ---------------------------------------- > Date: Sun, 21 Sep 2014 14:18:19 -0700 > From: eggert@cs.ucla.edu > To: vincent.b.1@hotmail.fr; emacs-devel@gnu.org; karl@freefriends.org; pe= rtusus@free.fr > Subject: Re: Patch to allow texi2any for EMACS manual compilation > > Vincent Bela=EFche wrote: > > I propose the following patch (attached) so that one can have the > > makeinfo program somehow made pointing at texi2any. > > I don't see how that patch would make a difference. Older texinfo > versions don't have texi2any and 'configure' would continue to use > 'makeinfo' as before. And in newer texinfo versions, 'texi2any' and > 'makeinfo' are aliases and 'configure' would also continue to use > 'makeinfo' as before. So why bother to change 'configure'? > Yes, with the newer texinfo versions configure would also continue to use makeinfo *unless* the user has configured his machine so that makeinfo actually calls tex2iany behind the scene. I think that this would also happen if the user does MAKEINFO=3Dtexi2any ./configure ... <-- with here other args But I am not sure --- I have not tested it. Vincent. PS: BTW, I did some update to the patch for the sake of simplification and handling $MAKEINFO =3D texi2any. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=configure.ac.diff === modified file 'configure.ac' --- configure.ac 2014-09-15 00:20:21 +0000 +++ configure.ac 2014-09-22 17:36:48 +0000 @@ -1099,16 +1099,25 @@ ## Need makeinfo >= 4.7 (?) to build the manuals. if test "$MAKEINFO" != "no"; then - if test "$MAKEINFO" = "${am_missing_run}makeinfo"; then - MAKEINFO=makeinfo + for MAKEINFO_IMPLEMENTATION in makeinfo texi2any; do + if test "$MAKEINFO" = "${am_missing_run}${MAKEINFO_IMPLEMENTATION}"; then + MAKEINFO=${MAKEINFO_IMPLEMENTATION} + fi + done + MAKEINFO_VERSION=`($MAKEINFO --version) 2>/dev/null`; + MAKEINFO_CHECK=no; + for MAKEINFO_IMPLEMENTATION in makeinfo texi2any; do + case $MAKEINFO_VERSION in + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "4.[7-9]* | \ + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "4.[1-9][0-9]* | \ + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "[5-9]* | \ + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "[1-9][0-9]* ) + MAKEINFO_CHECK=yes;; + esac + done + if [ $MAKEINFO_CHECK != yes ]; then + MAKEINFO=no; fi - case `($MAKEINFO --version) 2>/dev/null` in - 'makeinfo (GNU texinfo) '4.[[7-9]]* | \ - 'makeinfo (GNU texinfo) '4.[[1-9][0-9]]* | \ - 'makeinfo (GNU texinfo) '[[5-9]]* | \ - 'makeinfo (GNU texinfo) '[[1-9][0-9]]* ) ;; - *) MAKEINFO=no;; - esac fi ## Makeinfo is unusual. For a released Emacs, the manuals are --=-=-=--