>>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
Alexandre> Sounds good to me (i.e., you've got one approval; a patch
Alexandre> needs two to be installed in the autoconf CVS tree).
I confess I'm a bit lost by the change. We're moving from
ac_cv_host_alias=`$ac_config_guess`
ac_cv_build_alias=$host_alias
ac_cv_target_alias=$host_alias
to
ac_cv_host_alias=`$ac_config_guess`
ac_cv_build_alias=`$ac_config_guess`
ac_cv_target_alias=$target_alias
I don't understand why this helps: how can we define target_alias in
terms of ac_cv_target_alias since it appears to me that it is the
converse that happen? See the code:
| ...
| $1=$ac_cv_$1
| $1_alias=$ac_cv_$1_alias
| $1_cpu=$ac_cv_$1_cpu
| $1_vendor=$ac_cv_$1_vendor
| $1_os=$ac_cv_$1_os
| ...
| ])# _AC_CANONICAL_THING
Also, how do we still guarantee a valid default for
ac_cv_target_alias? Why do we need to run twice config.guess instead
of propagating ac_cv_build_alias=$host_alias?
Personally, I'd like better that thing to be written with an m4_case,
it is becoming hardly readable. For instance before Mo's patch it
would have been:
...
NONE)
m4_case([$1],
[host],
[ac_cv_host_alias=`$ac_config_guess` ||
AC_MSG_ERROR(cannot guess host type; you must specify one)],
[target],
[ac_cv_target_alias=$host_alias],
[build],
[ac_cv_build_alias=$host_alias])
*) ac_cv_$1_alias=$nonopt ;;
...
Akim