From: Brian Jackson Subject: [PATCH 1/1] Add configure script check for gawk when using kvm-userspace.git Date: Tue, 16 Sep 2008 12:35:31 -0500 Message-ID: <200809161235.31389.iggy@theiggy.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from theiggy.com ([66.220.1.110]:37049 "EHLO mail.theiggy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbYIPRfc (ORCPT ); Tue, 16 Sep 2008 13:35:32 -0400 Received: from phil-connors.local (unknown [216.63.86.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.theiggy.com (Postfix) with ESMTPSA id 48F7BC2F8 for ; Tue, 16 Sep 2008 12:35:32 -0500 (CDT) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: When building kvm-userspace from git, gawk is used by kernel/Makefile. Without this check it's non-obvious why kernel/Makefile fails. Signed-off-by: Brian Jackson diff --git a/configure b/configure index 3bb10ce..5cac4c8 100755 --- a/configure +++ b/configure @@ -102,6 +102,12 @@ if [ "$arch" = "powerpc" ]; then qemu_ldflags="$qemu_ldflags -L $PWD/libfdt" fi +# check for some utils we use +if [ -d .git -a ! -x "`which gawk`" ] ; then + echo "gawk not installed and necessary for compiling from git" + exit 1 +fi + #configure user dir (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir" \ --arch="$arch" \