mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
improve ac_sys_system/release, add ac_syts_cpu
This commit is contained in:
parent
d4c26469d6
commit
45ee2eaf29
@ -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;;
|
||||
|
Loading…
Reference in New Issue
Block a user