From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2969 invoked by alias); 11 May 2009 17:27:05 -0000 Received: (qmail 2952 invoked by uid 22791); 11 May 2009 17:27:04 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_38,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from araneidae.co.uk (HELO araneidae.co.uk) (62.3.233.233) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 May 2009 17:27:00 +0000 Received: from michael (helo=localhost) by araneidae.co.uk with local-esmtp (Exim 4.63) (envelope-from ) id 1M3ZHC-000528-Hz; Mon, 11 May 2009 18:26:54 +0100 Date: Mon, 11 May 2009 17:27:00 -0000 From: Michael Abbott To: "Yann E. MORIN" cc: crossgcc@sourceware.org, Joachim Nilsson Subject: Re: crosstool-ng libncurses check in configure In-Reply-To: <200905111903.03033.yann.morin.1998@anciens.enib.fr> Message-ID: References: <4A06E511.70507@vmlinux.org> <200905111903.03033.yann.morin.1998@anciens.enib.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00033.txt.bz2 On Mon, 11 May 2009, Yann E. MORIN wrote: > > lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" > No. ./configure *shall* be a POSIX compliant script. The real solution is > to fix ./configure to use POSIX-only syntax. I can do that, but I would > appreciate a patch ;-) Not a patch ... but how about: lib="$( for l in ncursesw ncurses curses; do for x in so a dylib; do echo -n "lib$l.$x " done done)" ? You probably don't need the -n (then you don't need the "... " either), but I'm not actually looking at the useage here, just the one line. Actually, if the order matters you need to swap the for lines around, but again I don't suppose it does. -- For unsubscribe information see http://sourceware.org/lists.html#faq