-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Peter Johansson wrote: > On 10/26/2012 02:22 PM, Alexey A. Illarionov wrote: >> Peter Johansson wrote: >>>> >>>> IMVHO, it is quite established that './configure' defaults to >>>> './configure CC=gcc' and anything else would be unexpected. >> Is there any reference for this? I thought that default >> behaviour should be ./configure CC=cc where cc can be >> system-specific. > Autoconf manual > > http://www.gnu.org/software/autoconf/manual/autoconf.html#C-Compiler > > says about AC_PROG_CC: "If |CC| is not already set in the > environment, check for |gcc| and |cc|, then for other C compilers". > AC_PROG_CC takes a list of compilers as first argument so if you > wanna change the default behaviour, it should be straightforward > except that it's not obvious to me how to decide which type of cat > the OS is... > > Cheers, Peter At the very same spot the manual says " if you didn't like the default order, then you could invoke AC_PROG_CC like this". Thus I think it would be justified to set clang default for MacOs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJQiiGzAAoJEEBWYSFzoNKe1aMH/2eDNVWonUf5jAR/2h2UMd+/ K3KDmoQV7bsQBA/0G+3HzP1of2CByLURC375wf7/qL/OwithiuQ9KKztWD4qdfzR Vttc0fp3j+Fy09g6OYVQ/UJUn8FGU3v43Y23gh+S/ZGgoXr1KfsJOojF882ksqjD RXfur1aj0G6cBM6/3pDd+kWQlNy+Jzo/qTOVTddK2pOWgjyg4G/IwW0wlVubYVNa ssvsgg7spBvbJK+EuJSgMO3SRby/Atvmw2+HyXFM+PT5B2AT5ItWgCZY4bPk8GX4 u1S218/WbLgaSUFBjLEYppb5BvJLGW2kZhBncRUnW3/k1AMzuukQlobqgC2PASE= =AIa7 -----END PGP SIGNATURE-----
