Skip to content

Commit

Permalink
configure: Change i*86 to i686 as has always been done.
Browse files Browse the repository at this point in the history
  • Loading branch information
civodul committed Nov 16, 2011
1 parent 45ec69c commit 42164d6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ AC_MSG_CHECKING([for the canonical Nix system name])
AC_ARG_WITH(system, AC_HELP_STRING([--with-system=SYSTEM],
[Platform identifier (e.g., `i686-linux').]),
[system=$withval],
[case "$host_os" in
[case "$host_cpu" in
i*86)
machine_name="i686";;
*)
machine_name="$host_cpu";;
esac
case "$host_os" in
linux-gnu*)
# For backward compatibility, strip the `-gnu' part.
system="$host_cpu-linux";;
system="$machine_name-linux";;
*)
# Strip the version number from names such as `gnu0.3',
# `darwin10.2.0', etc.
system="$host_cpu-`echo $host_os | "$SED" -e's/[0-9.]\+$//g'`";;
system="$machine_name-`echo $host_os | "$SED" -e's/[0-9.]\+$//g'`";;
esac])

AC_MSG_RESULT($system)
Expand Down

0 comments on commit 42164d6

Please sign in to comment.