From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9991 invoked by alias); 7 Oct 2003 23:59:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9984 invoked from network); 7 Oct 2003 23:59:24 -0000 Received: from unknown (HELO sire.mail.pas.earthlink.net) (207.217.120.182) by sources.redhat.com with SMTP; 7 Oct 2003 23:59:24 -0000 Received: from ip216-26-76-90.dsl.du.teleport.com ([216.26.76.90] helo=kanga.canids.net) by sire.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1A71jg-000218-00 for gdb-patches@sources.redhat.com; Tue, 07 Oct 2003 16:59:24 -0700 Received: from grayscale.local (grayscale.local [192.168.1.4]) by kanga.canids.net (Postfix) with ESMTP id 8FB0B158F81 for ; Tue, 7 Oct 2003 16:59:21 -0700 (PDT) From: Felix Lee To: gdb-patches@sources.redhat.com Subject: Re: RFC: Use program_transform_name correctly In-Reply-To: Message from Daniel Jacobowitz of "Tue, 07 Oct 2003 18:53:05 EDT." <20031007225305.GA13082@nevyn.them.org> Date: Tue, 07 Oct 2003 23:59:00 -0000 Message-Id: <20031007235921.8FB0B158F81@kanga.canids.net> X-SW-Source: 2003-10/txt/msg00186.txt.bz2 Daniel Jacobowitz : > Eh, you're right, this will teach me to answer without looking. From > gcc/Makefile.in: > t='$(program_transform_cross_name)'; echo ar | sed -e $$t ; \ > That's the idiom we should use here. yeah, $$t should be unquoted because configure does the quoting, so that a transformation that has quotes will work correctly. however, this is only for "recent" versions of autoconf, where recent is "some version of autoconf after 2.13 that still says 'generated by 2.13' at the top of configure". autoconf 2.13 and before will sometimes leave program_transform_name null, which will cause that sed to fail. the newer autoconfs will make sure program_transform_name is 's,x,x,' if it would otherwise be null. --