From patchwork Tue Jul 4 13:28:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Hiler X-Patchwork-Id: 9825027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 17500603B5 for ; Tue, 4 Jul 2017 13:29:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 074291FF1E for ; Tue, 4 Jul 2017 13:29:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDE5A25E13; Tue, 4 Jul 2017 13:29:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7467F1FF1E for ; Tue, 4 Jul 2017 13:29:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A2DD89DC2; Tue, 4 Jul 2017 13:29:24 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id CAEEC89DC2 for ; Tue, 4 Jul 2017 13:29:23 +0000 (UTC) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jul 2017 06:29:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,307,1496127600"; d="scan'208";a="122160531" Received: from ahiler-desk1.fi.intel.com ([10.237.68.139]) by fmsmga005.fm.intel.com with ESMTP; 04 Jul 2017 06:29:19 -0700 From: Arkadiusz Hiler To: intel-gfx@lists.freedesktop.org Date: Tue, 4 Jul 2017 16:28:58 +0300 Message-Id: <20170704132858.309-1-arkadiusz.hiler@intel.com> X-Mailer: git-send-email 2.9.4 Cc: Leo Liu Subject: [Intel-gfx] [PATCH i-g-t] configure.ac: Make AMDGPU depend on libdrm >= 2.4.76 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP AMDGPU_FAMILY_AI was introduced in commit being part of libdrm 2.4.76 release and amd_basic tests are using that define. Since the module is turned on by default this results in compilation failing on machines with older libdrm. Let make them fail on ./configure step instead. Cc: Leo Liu Cc: Chris Wilson Reported-by: Martin Peres Signed-off-by: Arkadiusz Hiler --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0418e60..bf09927 100644 --- a/configure.ac +++ b/configure.ac @@ -217,7 +217,7 @@ if test "x$AMDGPU" = xauto; then PKG_CHECK_EXISTS([libdrm_amdgpu], [AMDGPU=yes], [AMDGPU=no]) fi if test "x$AMDGPU" = xyes; then - PKG_CHECK_MODULES(DRM_AMDGPU, [libdrm_amdgpu]) + PKG_CHECK_MODULES(DRM_AMDGPU, [libdrm_amdgpu >= 2.4.76]) AC_DEFINE(HAVE_LIBDRM_AMDGPU, 1, [Have amdgpu support]) fi AM_CONDITIONAL(HAVE_LIBDRM_AMDGPU, [test "x$AMDGPU" = xyes])