This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -mwin32 test macro


Thanks. I'll do a new one up with that change (and any others suggested
in the meantime). It's quite late where I am (1:30 am) so that'll be
tomorrow :]

Rob


----- Original Message -----
From: "Lars J. Aas" <larsa@sim.no>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: <cygwin-apps@sources.redhat.com>; <autoconf@gnu.org>
Sent: Thursday, March 15, 2001 1:33 AM
Subject: Re: -mwin32 test macro


> On Thu, Mar 15, 2001 at 01:15:31AM +1100, Robert Collins wrote:
> : It sets ac_cc_win32 to yes or no as appropriate, so test writers in
> : configure.in can do an AC_SUBST or AC_DEFINE and switch off bits of
> : their code, or do as above, and fail the configure script.
>
> It's more useful to set it to "true" / "false".  Then you can write
>
> if $ac_cc_win32; then
>   ...
> fi
>
> instead of having to do a string comparison like
>
> if test x"$ac_cc_win32" = x"yes"; then
>   ...
> fi
>
>   Lars J
> --
> Innovation is one percent inspiration and ninetynine percent
perspiration,
> and in my case; twice that...  -- Norville Barnes, `The Hudsucker
Proxy'
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]