Kaydet (Commit) 45ee2eaf authored tarafından Guido van Rossum's avatar Guido van Rossum

improve ac_sys_system/release, add ac_syts_cpu

üst d4c26469
......@@ -74,8 +74,11 @@ AC_SUBST(MACHDEP)
AC_MSG_CHECKING(MACHDEP)
if test -z "$MACHDEP"
then
ac_sys_system=`uname -s | tr -d ' ' | tr '[[A-Z]]' '[[a-z]]'`
ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'`
ac_sys_system=`uname -s | tr -d '[[/ ]]' | tr '[[A-Z]]' '[[a-z]]'`
ac_sys_release=`uname -r | tr -d '[[/ ]]' | sed 's/\..*//'`
ac_sys_cpu=`(uname -p 2>/dev/null || uname -m) |
tr '[[A-Z]]' '[[-a-z]]'`
## MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
MACHDEP="$ac_sys_system$ac_sys_release"
case MACHDEP in
'') MACHDEP=unknown;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment