delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-apps-owner AT sourceware DOT cygnus DOT com |
List-Subscribe: | <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin-apps/> |
List-Post: | <mailto:cygwin-apps AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs> |
Delivered-To: | mailing list cygwin-apps AT sources DOT redhat DOT com |
To: | "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> |
Cc: | <cygwin-apps AT sources DOT redhat DOT com>, <autoconf AT gnu DOT org> |
Subject: | Re: updated win32 macro |
References: | <035401c0ac91$3ba21fd0$0200a8c0 AT lifelesswks> |
<022001c0accf$29b724d0$0200a8c0 AT lifelesswks> | |
From: | Akim Demaille <akim AT epita DOT fr> |
Date: | 15 Mar 2001 10:23:11 +0100 |
In-Reply-To: | <022001c0accf$29b724d0$0200a8c0@lifelesswks> |
Message-ID: | <mv4vgpb5qtc.fsf@nostromo.lrde.epita.fr> |
Lines: | 21 |
User-Agent: | Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
MIME-Version: | 1.0 |
| Sample code to use it in configure.in, when the program _needs_ the | win32 API: | | AC_CANONICAL_HOST | | case "${host}" in | *-*-cygwin*) | AC_PROG_CC_WIN32 | if $ac_cc_win32; then | dnl do nothing here - any header checks /library checks etc | later in configure.in will now pass | else | echo "configure: error: Win32 API needed and no acceptable | cc could be found" 1>&2; | exit 1; | fi ;; | esac My opinion is that AC_PROG_CC_WIN32 should contain an AC_REQUIRE of AC_CANONICAL_HOST, and should ensure the case $host itself.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |