Ethan Merritt wrote:
> What is the correct way to have ./configure figure this out?
There are two possibilities:
1) one that goes very much against the grain of what autoconf was
designed for: a switch/case on (part of) the canonical platform name, as
figured out by config.guess.
2) the fully autoconf-ish approach: check whether -ieee improves the
behaviour of a test program, by compiling and running it twice.
3) the middle way: compile a test souce with an #ifdef __ALPHA__ or so,
and if it's there, add -ieee to the CFLAGS.
For an examples of technique 3), see the existing macros in m4/*.m4.
|