racket icon indicating copy to clipboard operation
racket copied to clipboard

Zuo: show `CC_FOR_BUILD` in `--help` and infer from `--host`

Open LiberalArtist opened this issue 3 years ago • 1 comments

The first commit just tweaks the help output from Zuo's configure.ac. The second uses AX_PROG_CC_FOR_BUILD from the Autoconf archive to infer those values, so you can do ./configure --host=powerpc64le-linux-gnu rather than ./configure --host=powerpc64le-linux-gnu CC_FOR_BUILD=gcc. If the extra M4 file doesn't seem like too much, I think it might be even more useful elsewhere.

LiberalArtist avatar Aug 01 '22 14:08 LiberalArtist

The first of the two commits looks like a clear improvement.

For the second commit, I'm still reluctant to pull in the extra support for configure to define CC_FOR_BUILD. Also, it doesn't seem like a good idea for zuo sources to depend on things inside the Racket source tree but outside the zuo directory. How bad is requiring CC_FOR_BUILD to be specified? Is it common that it's inferred automatically?

mflatt avatar Aug 03 '22 07:08 mflatt

I've dropped the second commit. Supplying `CC_FOR_BUILD' isn't causing any difficulty for me here, and I agree that keeping Zuo as self-contained as reasonably possible seems good.

LiberalArtist avatar Aug 15 '22 23:08 LiberalArtist

Thanks!

mflatt avatar Aug 22 '22 05:08 mflatt