diff --git a/configure b/configure index 1e574f3..71de2ba 100755 --- a/configure +++ b/configure @@ -1213,9 +1213,9 @@ cl_cv_host="$host" fi echo "$ac_t""$cl_cv_host" 1>&6 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/'` case "$host_cpu" in