Re: Preferring a specific compiler?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: Preferring a specific compiler?

Stepan Kasal

On Tue, May 31, 2005 at 12:55:31PM -0700, Dan Stromberg wrote:
> ...but it's not finding tcc.  Perhaps it's looking for a program called
> "tcc -b", and not a program called "tcc" with a "-b" argument?

No, it should look for tcc.  Does the following work:
        AC_CHECK_PROGS(FOO1, ["tcc -b" gcc cc])
        AC_CHECK_PROGS(FOO2, [tcc gcc cc])

Two things came to my mind:

Perhaps you are calling AC_PROG_CC(["tcc -b" gcc cc]) too late.
Add "echo $CC" just before it, to make sure that CC is not set yet.

Try placing AC_PROG_CC just after AM_INIT_AUTOMAKE or even just after

If you are on a Windows platform and you actually want to find tcc.exe or
even than you might need
that should normally be set in your

I'm afraid you'll have to debug that part of ./configure yourself.

Have a nice day,
        Stepan Kasal

Autoconf mailing list
[hidden email]