autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_PROG_CC_C_O doesn't work with VC++


From: Stepan Kasal
Subject: Re: AC_PROG_CC_C_O doesn't work with VC++
Date: Fri, 1 Jul 2005 12:58:16 +0200
User-agent: Mutt/1.4.1i

Hello,

On Fri, Jul 01, 2005 at 10:14:28AM +0200, Harald Dunkel wrote:
> It seems that AC_PROG_CC_C_O does not work with Microsoft's
> Visual C++ 13.10.3077.
[...]
>       cl -c -o somedir/conftest.obj conftest.c
> or
>       cl -c -o xyz.obj conftest.c
> 
> do not work as expected. cl silently ignores the -o
> option if there is a -c.

the patch attached to this mail (relative to current autoconf CVS)
should fix it.

OK to commit?

> How can I tell autoconf to not use -c and -o together,
> regardless what the test said?

Do I guess correctly that you in fact use AM_PROG_CC_C?
Then the following hack should work:

AC_PROG_CC_C_O
eval ac_cv_prog_cc_${ac_cc}_c_o=no
AM_PROG_CC_C_O

(The configure output still says that -c -o works, and NO_MINUS_C_MINUS_O
is not defined in your config.h, but it doesn't matter.)

Have a nice day,
        Stepan

Attachment: autoconf-20050701-cc-c-o.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]