%% Tom Tromey <[EMAIL PROTECTED]> writes:

  tom> In general send config.guess problems to [EMAIL PROTECTED]

Well... I would have but I don't have a patch :).

Anyway, it's not clear that the entire problem is config.guess, here.

  Paul> Should I move AC_CANONICAL_HOST to _after_ my test for
  Paul> AC_PROG_CC, and figure out how to invoke config.guess in such a
  Paul> way as to use the compiler it finds, or what?

  tom> I think if you move AC_CANONICAL_HOST after AC_PROG_CC, then
  tom> config.guess will automatically pick up the right compiler.
  tom> If this is a real constraint then it should be handled via AC_BEFORE
  tom> in autoconf.

  tom> Really it seems like config.guess could give a better message in this
  tom> case.

Right; that's kind of why I asked.  It seems there are a few potential
solutions:

 1) Have AC_CANONICAL_HOST require AC_PROG_CC, as Ossama suggested.  One
    problem here is that not all runs of config.guess _do_ require a C
    compiler, and it's a minor drag that you can't use AC_CANONICAL_HOST
    without a C compiler; couldn't we write a configure.in for some
    system that _didn't_ need a C compiler?  Or is that already right out?

 2) Not require it, but change the recommended process, in the manual
    etc., to encourage people to put AC_PROG_CC before AC_CANONICAL_HOST
    if they're going to use it.

 3) Have config.guess print a more reasonable error message if it needs
    a compiler and can't find one; it should try to build the most
    trivial test program possible, like "int main() { return 0; }", and
    link and run it; if it doesn't work print something like "can't find
    a working C compiler; set HOST_CC to a working compiler, or provide
    a valid host specifier to configure".  Or whatever.

    Oh yeah, and it'd be nice if it didn't throw the error output from
    the compile on the floor, so it'd be simpler to see what went wrong.

    And, of course, it'd be extra-nice if we didn't need to make this
    test until/unless config.guess knows it needs a compiler.

    Too bad we can't use shell functions :( :( :( :(

Anyway, it seems like one of 1 or 2, plus 3, would be a good combination.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

Reply via email to