From 7958c9893a93f8945805de09bfba614a276d027e Mon Sep 17 00:00:00 2001 From: kim Date: Sat, 18 Sep 1999 15:33:55 +0000 Subject: Fix unknown MACHINE_ARCH on Solaris. --- mk/bsd.prefs.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 173f2bcb91f..da053f199bc 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.12 1999/08/12 14:16:25 christos Exp $ +# $NetBSD: bsd.prefs.mk,v 1.13 1999/09/18 15:33:55 kim Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -45,12 +45,15 @@ MACHINE_GNU_ARCH?= ${GNU_ARCH.${MACHINE_ARCH}} .if ${OPSYS} == "NetBSD" LOWER_OPSYS?= netbsd .elif ${OPSYS} == "SunOS" +.if ${MACHINE_ARCH} == "unknown" +LOWER_ARCH!= ${UNAME} -p +.endif LOWER_VENDOR?= sun LOWER_OPSYS?= solaris .elif ${OPSYS} == "Linux" LOWER_OPSYS?= linux .if ${MACHINE_ARCH} == "unknown" -LOWER_ARCH!= ${UNAME} -m | sed -e 's/[456]86/386/' +LOWER_ARCH!= ${UNAME} -m | sed -e 's/[456]86/386/' .if ${LOWER_ARCH} == "i386" LOWER_VENDOR?= pc .else -- cgit v1.2.3