* WTF? More canonical system name problems ("athlon-linux" instead of

"i686-linux").
This commit is contained in:
Eelco Dolstra 2004-08-13 09:57:51 +00:00
parent 62fe5c4a22
commit 966bd9d19f
1 changed files with 14 additions and 4 deletions

View File

@ -22,10 +22,20 @@ AC_CANONICAL_HOST
# Construct a Nix system name (like "i686-linux").
AC_MSG_CHECKING([for the canonical Nix system name])
machine_name=$(uname -p | tr 'A-Z ' 'a-z_')
if test "$machine_name" = "unknown"; then
machine_name=$(uname -m | tr 'A-Z ' 'a-z_')
fi
cpu_name=$(uname -p | tr 'A-Z ' 'a-z_')
machine_name=$(uname -m | tr 'A-Z ' 'a-z_')
case $machine_name in
i*86)
machine_name=i686
;;
*)
if test "$cpu_name" != "unknown"; then
machine_name=$cpu_name
fi
;;
esac
sys_name=$(uname -s | tr 'A-Z ' 'a-z_')
AC_ARG_WITH(system, AC_HELP_STRING([--with-system=SYSTEM],
[platform identifier (e.g., `i686-linux')]),