summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorhans <hans>2011-09-14 15:14:53 +0000
committerhans <hans>2011-09-14 15:14:53 +0000
commitd16e68e67033254f428509dd8621ba3c46d74707 (patch)
treec183ac885f2ecf00a399bbae1c34b6a22b05fdd7 /bootstrap
parentedebc140b32857920804842b5d18735ae73be92f (diff)
downloadpkgsrc-d16e68e67033254f428509dd8621ba3c46d74707.tar.gz
Use more host tools on SunOS. Default to GNU tools when available.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap14
1 files changed, 11 insertions, 3 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 9252b3fbcc7..89b5bef9efe 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.169 2011/06/12 17:46:02 agc Exp $
+# $NetBSD: bootstrap,v 1.170 2011/09/14 15:14:53 hans Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -666,8 +666,16 @@ SunOS)
fi
root_group=root
need_bsd_install=yes
- need_awk=yes
- need_sed=yes
+ if [ -x "/usr/gnu/bin/awk" ]; then
+ need_awk=no
+ else
+ need_awk=yes
+ fi
+ if [ -x "/usr/gnu/bin/sed" ]; then
+ need_sed=no
+ else
+ need_sed=yes
+ fi
need_ksh=yes
set_opsys=no
groupsprog="/usr/xpg4/bin/id -gn"