improve ac_sys_system/release, add ac_syts_cpu

This commit is contained in:
Guido van Rossum 1995-08-28 02:44:00 +00:00
parent d4c26469d6
commit 45ee2eaf29
1 changed files with 5 additions and 2 deletions

View File

@ -74,8 +74,11 @@ AC_SUBST(MACHDEP)
AC_MSG_CHECKING(MACHDEP) AC_MSG_CHECKING(MACHDEP)
if test -z "$MACHDEP" if test -z "$MACHDEP"
then then
ac_sys_system=`uname -s | tr -d ' ' | tr '[[A-Z]]' '[[a-z]]'` ac_sys_system=`uname -s | tr -d '[[/ ]]' | tr '[[A-Z]]' '[[a-z]]'`
ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'` 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" MACHDEP="$ac_sys_system$ac_sys_release"
case MACHDEP in case MACHDEP in
'') MACHDEP=unknown;; '') MACHDEP=unknown;;