]> www.ginac.de Git - cln.git/commitdiff
Fix determination of host_cpu.
authorBruno Haible <bruno@clisp.org>
Tue, 23 May 2000 10:50:01 +0000 (10:50 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 May 2000 10:50:01 +0000 (10:50 +0000)
ChangeLog
autoconf/aclocal.m4

index 80b52b8dd5c05b779448266d5be5f032e70b1f12..17558d445bbfd8747ff7f8b009f31312e887a846 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-23  Bruno Haible  <haible@clisp.cons.org>
+
+        * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
+          host_vendor, host_os correctly if $host has more than two hyphens.
+
 2000-05-19  Richard Kreckel  <kreckel@ginac.de>
 
         * src/base/digitseq/cl_DS_mul.cc: Rearranged break-even points to
index 2042cf79acceeca77c554076563a0e047ccbe7a5..e558f584f2cce4c8891d3fd5181af62cbc85fed1 100644 (file)
@@ -234,9 +234,9 @@ fi
 cl_cv_host="$host"
 ])
 host="$cl_cv_host"
-host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
-host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
-host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
+host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 AC_SUBST(host)dnl
 AC_SUBST(host_cpu)dnl
 AC_SUBST(host_vendor)dnl