summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-28 02:44:00 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-28 02:44:00 (GMT)
commit45ee2eaf29704187974ee74e1ef1dfb70e1dac68 (patch)
tree55446fe61292bc1e1853119602d2efd6b6e25cda
parentd4c26469d6d734efaa8bf2c5d997bd20b2d0de80 (diff)
downloadcpython-45ee2eaf29704187974ee74e1ef1dfb70e1dac68.zip
cpython-45ee2eaf29704187974ee74e1ef1dfb70e1dac68.tar.gz
cpython-45ee2eaf29704187974ee74e1ef1dfb70e1dac68.tar.bz2
improve ac_sys_system/release, add ac_syts_cpu
-rw-r--r--configure.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 3c55a4d..67d4cba 100644
--- a/configure.in
+++ b/configure.in
@@ -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;;