X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C388385E014
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1585313311;
	bh=qQex5ATZpdUIqTtMM8d2/0IHpjKQ/6EQMZKSAHAZRkk=;
	h=Subject:To:Date:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=eRhZlIUkTbCyDZPwA+xqg8LfKOKNR1LSKtydZtPjl2g28rCyXqhFqJLq10NDNbJyM
	 MprBe20Bss/e8cDfDz85OfNZFSdAdCMVmbxm+r0V1RF5UaNn+9DVAlqUae51HP2dfO
	 l0mc+wPTxQtKSkKsX2SFn7l00q9v+qVrgqWudU9w=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DF52E385E006
Message-ID: <e2c1cdf7bfd0e8a13759ff4498c7d431d9d53ab2.camel@tdcadsl.dk>
Subject: Re: Use cygwin to run autotools for MSVC?
To: Mike Gran <spk121@yahoo.com>, Cygwin List <cygwin@cygwin.com>
Date: Fri, 27 Mar 2020 13:48:24 +0100
In-Reply-To: <537493096.2714240.1585254646086@mail.yahoo.com>
References: <537493096.2714240.1585254646086.ref@mail.yahoo.com>
 <537493096.2714240.1585254646086@mail.yahoo.com>
User-Agent: Evolution 3.32.5 (3.32.5-1.fc30)
MIME-Version: 1.0
X-yse-mailing: LEGIT
X-yse-spamcause: OK,
 (-100)(0000)gggruggvucftvghtrhhoucdtuddrgedugedrudehledggeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvfffvedpggftfgfpufgfuefuveftkfeugfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkffuhffvffgjfhgtfggggfesthejredttderjeenucfhrhhomheprfgvthgvrhcuffhonhhsucfvhigthhhsvghnuceoughonhhpvggurhhosehtuggtrggushhlrdgukheqnecukfhppedutddrvdeirddvvdeirddufedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepmhifuhhmfhdtfedtiedpihhnvghtpedutddrvdeirddvvdeirddufedupdhmrghilhhfrhhomhepughonhhpvggurhhosehtuggtrggushhlrdgukhdprhgtphhtthhopehsphhkuddvudeshigrhhhoohdrtghomhdprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhm
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
 SPF_PASS autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Peter Dons Tychsen via Cygwin <cygwin@cygwin.com>
Reply-To: Peter Dons Tychsen <donpedro@tdcadsl.dk>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Hi Mike,

> Is it possible use Cygwin to run an autotools 'configure' script but
> have the compiler be MSVC?

Yeah, sure, i have done this in the past.

"./configure CC=cl.exe" should get you going as far as i remember. Make
sure your MS tools are in your PATH.

There are limitations though, as some of library search mechanisms in
autoconf will not work as expected, so do not expect larger projects to
work without having to hack a bit in those nasty M4 macro files
(yikes!).

But for simple projects it does actually work, which is what i used it
for. I have not tried it recently, but i guess it still is supported.

Thanks,

/pedro

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
