From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30240 invoked by alias); 17 Apr 2009 19:49:13 -0000 Received: (qmail 30231 invoked by uid 22791); 17 Apr 2009 19:49:13 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_92,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Apr 2009 19:49:08 +0000 Received: (qmail 14086 invoked from network); 17 Apr 2009 19:49:06 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Apr 2009 19:49:06 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1Luu3V-0003Kr-Qy; Fri, 17 Apr 2009 19:48:57 +0000 Date: Fri, 17 Apr 2009 19:49:00 -0000 From: "Joseph S. Myers" To: Eli Zaretskii cc: gdb-patches@sourceware.org Subject: Re: install-html and install-pdf improvements In-Reply-To: <83bpqvjg96.fsf@gnu.org> Message-ID: References: <83hc0njo9e.fsf@gnu.org> <83bpqvjg96.fsf@gnu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00463.txt.bz2 On Fri, 17 Apr 2009, Eli Zaretskii wrote: > > Date: Fri, 17 Apr 2009 15:30:08 +0000 (UTC) > > From: "Joseph S. Myers" > > cc: gdb-patches@sourceware.org > > > > On Fri, 17 Apr 2009, Eli Zaretskii wrote: > > > > > Yes, but I don't understand why did you need to define docdir in > > > addition to pdfdir and htmldir. Unlike the other two, docdir is not > > > used anywhere, so why define it? > > > > The default definitions of htmldir and pdfdir use ${docdir} > > Sorry, I'm not following: what default definitions? These variables > are used neither in your patch nor in the current doc/Makefile.in. > What am I missing? The default definitions in the toplevel configure.ac, at least. docdir="\${datarootdir}/doc" pdfdir="\${docdir}" htmldir="\${docdir}" > > (When the src repository moves to newer > > autoconf with native support for all these directory variables, the custom > > configure code to deal with them will go away, and the makefiles will not > > need any changes as they will already define all required variables.) > > Well, you are talking here about something I don't know anything > about. But we don't need to install today a change that will only be > needed at some future time. I think Ralf is the main person working on updating the by now very out of date versions of auto* used in GCC and src, but in general it's a good idea to reduce the size of the large and potentially complicated final transition patch by making makefiles and configure scripts work where possible with both the presently used auto* versions and with the current versions that will be used in future. A definition of datarootdir, for example, is at worst harmless but unnecessary with autoconf 2.59, and avoids problems with missing definitions of that variable when autoconf 2.60 or later is used, so can sensibly go in makefiles when any variable that autoconf 2.60 and later derives from datarootdir is used. -- Joseph S. Myers joseph@codesourcery.com