From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25925 invoked by alias); 12 Jan 2009 19:07:15 -0000 Received: (qmail 25910 invoked by uid 22791); 12 Jan 2009 19:07:14 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f16.google.com (HELO mail-bw0-f16.google.com) (209.85.218.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Jan 2009 19:06:43 +0000 Received: by bwz9 with SMTP id 9so6524881bwz.2 for ; Mon, 12 Jan 2009 11:06:40 -0800 (PST) Received: by 10.103.117.8 with SMTP id u8mr10896614mum.123.1231787200072; Mon, 12 Jan 2009 11:06:40 -0800 (PST) Received: by 10.103.5.15 with HTTP; Mon, 12 Jan 2009 11:06:39 -0800 (PST) Message-ID: <2ca21dcc0901121106g28f0f585u68fd59388b0120ad@mail.gmail.com> Date: Mon, 12 Jan 2009 20:10:00 -0000 From: "Dave Korn" To: cygwin@cygwin.com Subject: Re: Reliably check if we're running under cygwin inside Makefile Cc: Fergus In-Reply-To: <496B828A.3010006@bonhard.uklinux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <496B828A.3010006@bonhard.uklinux.net> Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00329.txt.bz2 Fergus wrote: > > osname := $(shell uname -s) > > osver := $(shell uname -r) > > cpuarch := $(shell uname -m) > > Probably the fault is mine but I can't get this to do anything useful in > Cygwin. You could try (something like): > > case `uname` in Hmm, did you try those first examples in bash before deciding they didn't work? Because your alternative proposal looks a lot like shell script... Perhaps you need to read the subject line again! cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/