From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na6jI-00006f-BO for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na6jD-0008VW-RU for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:39 -0500 Received: from [199.232.76.173] (port=41903 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na6jD-0008VG-IG for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:35 -0500 Received: from duck.dooz.org ([194.146.227.125]:37082) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na6jC-0004d1-QW for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:35 -0500 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Wed, 27 Jan 2010 13:10:05 +0100 Message-Id: <1264594205-14940-3-git-send-email-lool@dooz.org> In-Reply-To: <1264594205-14940-2-git-send-email-lool@dooz.org> References: <1264594205-14940-1-git-send-email-lool@dooz.org> <1264594205-14940-2-git-send-email-lool@dooz.org> Subject: [Qemu-devel] [PATCH 3/3] Solaris: test for presence of commands with has() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, =?UTF-8?q?Lo=C3=AFc=20Minier?= --- configure | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 6bdd2b7..1d0915a 100755 --- a/configure +++ b/configure @@ -803,21 +803,19 @@ fi # Solaris specific configure tool chain decisions # if test "$solaris" = "yes" ; then - solinst=`path_of $install` - if test -z "$solinst" ; then + if ! has $install; then echo "Solaris install program not found. Use --install=/usr/ucb/install or" echo "install fileutils from www.blastwave.org using pkg-get -i fileutils" echo "to get ginstall which is used by default (which lives in /opt/csw/bin)" exit 1 fi - if test "$solinst" = "/usr/sbin/install" ; then + if "`path_of $install`" = "/usr/sbin/install" ; then echo "Error: Solaris /usr/sbin/install is not an appropriate install program." echo "try ginstall from the GNU fileutils available from www.blastwave.org" echo "using pkg-get -i fileutils, or use --install=/usr/ucb/install" exit 1 fi - sol_ar=`path_of ar` - if test -z "$sol_ar" ; then + if ! has ar; then echo "Error: No path includes ar" if test -f /usr/ccs/bin/ar ; then echo "Add /usr/ccs/bin to your path and rerun configure" -- 1.6.5