From patchwork Mon Jan 8 17:47:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 856975 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zFjQl0gJjz9t4B for ; Tue, 9 Jan 2018 04:47:27 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="eY/PTBB0"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3zFjQk5K2YzF0Rp for ; Tue, 9 Jan 2018 04:47:26 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="eY/PTBB0"; dkim-atps=neutral X-Original-To: Petitboot@lists.ozlabs.org Delivered-To: Petitboot@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="eY/PTBB0"; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zFjQZ3xgnzDqnr for ; Tue, 9 Jan 2018 04:47:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7O+yRyFFTDXSun3z/ZOq2KSb1FBU33Yi15JKUxSOmOE=; b=eY/PTBB0MVjYfEDghNoprNix+s WrUTOTF9iSORISVlXPrVhqTf0pz099REc7dr5CFbmQBxRTKJMch04vV9kBPBDh7AHCSY/DtPnTCIY L8rL2WIg5I4xdbL1SZww/5w+njjkhtjYfdNtHMS890VIBLVFa4JTXziNtPgi0M3SeeBpgULqnOXiF BY63DBXEleqtCv34fKFO9O1+odBtcdvwGYJN2wzAs5Ft7CJPxXfHIBjg+WHMg1NDROCMa85sVoE+I uWiTR/87kH1UMBtxUAskYxS21i6LLabNdM0fRcuBnYuWoOEDlsQ4hzlDc785Fqd9NtHPKO+pqpaWO 0cmSyHNw==; Received: from 50-233-148-156-static.hfc.comcastbusiness.net ([50.233.148.156] helo=[10.18.6.178]) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eYbVq-0003NQ-PU; Mon, 08 Jan 2018 17:47:07 +0000 Subject: [PATCH V2 1/4] bootstrap: Add dependency checks From: Geoff Levand To: Samuel Mendoza-Jonas References: <2106f3a4cdcd61c33a17f3f59063519d486f43ab.1515199383.git.geoff@infradead.org> Message-ID: Date: Mon, 8 Jan 2018 09:47:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <2106f3a4cdcd61c33a17f3f59063519d486f43ab.1515199383.git.geoff@infradead.org> Content-Language: en-US X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petitboot@lists.ozlabs.org Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Signed-off-by: Geoff Levand --- v2: Changed check from using which to use --version bootstrap | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bootstrap b/bootstrap index e72dad6..4653877 100755 --- a/bootstrap +++ b/bootstrap @@ -1,3 +1,14 @@ #!/bin/sh +progs="autoconf automake autopoint libtoolize pkg-config" + +for p in ${progs}; do + if test -z "$(${p} --version 2>/dev/null)"; then + echo "Please install ${p}" + result=1 + fi +done + +[ -z ${result} ] || exit 1 + exec autoreconf -f -i