Re: Getting a list of available C compilers

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

 



Hi Harlan,

* Harlan Stenn wrote on Tue, Oct 27, 2009 at 12:39:24AM CET:
> Does anybody have (a pointer to) a small utility that will return a list
> of available C compilers on a system?

I guess you can peek at AC_PROG_CC for a list, that is of course far
from complete.

> Extra points if it can ferret out multiple instances/versions of gcc...

Question is why would you need it and what would you do with it?
What does it help you to know about a bunch of $host-gcc-X.Y if
you are not going to compile for $host?

But yes, you should be able to walk the PATH and use some glob on each
directory to find such candidates.

HTH.  Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux