[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: updated win32 macro
From: |
Akim Demaille |
Subject: |
Re: updated win32 macro |
Date: |
15 Mar 2001 10:49:01 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
>>>>> "Robert" == Robert Collins <address@hidden> writes:
Robert> It looks like the cc result is not used from cache - so I
Robert> don't think this test should allow caching. Also I have a
Robert> question on the caching: I need to cache _the change needed to
Robert> CC_... Is that temporary variable automatically cached?
If you ac_cv_ it, yes. But never display a cache variable to the
user.
You macro, indeed, is fragile to the changes of LANG. I'm not sure
AC_PROG_CC_WIN32
AC_LANG(C++)
AC_LANG(C)
echo $ac_compile
will display what you hope it would. And actually, now that coffee
suddenly breaks my mind free, I just understood you meant to do here:
ac_cc_win32=yes
ac_compile="$ac_compile -mwin32"
ac_link="$ac_link -mwin32"
CC="$CC -mwin32"
this is `wrong'. ac_compile and friends are not evaluated at their
definition, but at their uses. So you need not (and must not) change
them at all. Changing CC is a bad idea. And BTW, my suggestion
behind the C++ stuff was that, IMHO, you should not set CC, or maybe
at least provide the user with a means to get the switch, say the
variable $WIN32CFLAGS.
AC_LANG_COMPILER_MWIN32([YES-WIN32], [NOT-WIN32])
I would be able to write
AC_LANG_COMPILER_MWIN32([CC="$CC $WIN32CFLAGS])
CXX="$CXX $WIN32CFLAGS"
- -mwin32 test macro, Robert Collins, 2001/03/14
- Re: -mwin32 test macro, Lars J. Aas, 2001/03/14
- updated win32 macro, Robert Collins, 2001/03/14
- Re: updated win32 macro, Alexandre Oliva, 2001/03/15
- Re: updated win32 macro, Robert Collins, 2001/03/15
- Re: updated win32 macro, Robert Collins, 2001/03/15
- Re: updated win32 macro,
Akim Demaille <=
- Re: updated win32 macro, Robert Collins, 2001/03/15
- Re: updated win32 macro, Akim Demaille, 2001/03/15
- Re: updated win32 macro, Robert Collins, 2001/03/15
- Re: updated win32 macro, Robert Collins, 2001/03/15
- Re: updated win32 macro, Akim Demaille, 2001/03/15
- Re: updated win32 macro, Akim Demaille, 2001/03/15
- Re: updated win32 macro, Robert Collins, 2001/03/15
- Re: updated win32 macro, Akim Demaille, 2001/03/15
- Re: updated win32 macro, Robert Collins, 2001/03/15
- Re: updated win32 macro, Akim Demaille, 2001/03/15