From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Latest EMACS on BZR trunk does not compile with MinGW Date: Thu, 05 Jun 2014 05:40:46 +0200 Message-ID: <87vbsg58ht.fsf@wanadoo.es> References: <80sinlu5kt.fsf@gmail.com> <538E2E90.4020706@cs.ucla.edu> <83mwdt8zkw.fsf@gnu.org> <83lhtd892x.fsf@gnu.org> <83tx807qdx.fsf@gnu.org> <83k38w7k7i.fsf@gnu.org> <83ha407j92.fsf@gnu.org> <834n006pcg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401939682 16779 80.91.229.3 (5 Jun 2014 03:41:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 03:41:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 05 05:41:15 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 1WsOYE-0005hM-KN for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2014 05:41:14 +0200 Original-Received: from localhost ([::1]:38123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsOYE-0003KJ-3m for ged-emacs-devel@m.gmane.org; Wed, 04 Jun 2014 23:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsOY5-0003JJ-K0 for emacs-devel@gnu.org; Wed, 04 Jun 2014 23:41:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsOXz-0001Qu-MX for emacs-devel@gnu.org; Wed, 04 Jun 2014 23:41:05 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsOXz-0001Qo-GB for emacs-devel@gnu.org; Wed, 04 Jun 2014 23:40:59 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WsOXy-0005Un-4w for emacs-devel@gnu.org; Thu, 05 Jun 2014 05:40:58 +0200 Original-Received: from 26.red-83-41-61.dynamicip.rima-tde.net ([83.41.61.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 05:40:58 +0200 Original-Received: from ofv by 26.red-83-41-61.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 05:40:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 26.red-83-41-61.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:Ic4Dl+Y6p+6G7qO0R4rflifCsFY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:172353 Archived-At: Eli Zaretskii writes: >> > Another option would be, perphaps, to check the environment >> > variable $OSTYPE (instead of $MSYSTEM). I've just done a quick >> > test on my system: if I invoke "bash.exe" (without "--login"), I >> > see that $OSTYPE holds "msys", while $MSYSTEM is undefined. (But >> > I don't know if this is also true in other MSYS flavors). >> >> How 'bout testing a functionality on which we rely during the build, >> rather than looking for some indirect evidence? > > Chicken-and-egg problem: that test is there so that we could source > nt/mingw-cfg.site file, which does what you want. Why not test if the preprocessor defines __MINGW32__?