From patchwork Thu Sep 28 22:56:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 5329 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.61.197 with SMTP id n188csp96556jan; Thu, 28 Sep 2017 15:56:57 -0700 (PDT) X-Received: by 10.223.183.17 with SMTP id l17mr5359022wre.139.1506639417844; Thu, 28 Sep 2017 15:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506639417; cv=none; d=google.com; s=arc-20160816; b=BEZ6932i7UpCeWELBMlw4Zl5b9emYdXxjOx2tEYXS2ulj7X2vbMklRK5X8tq1VUkem 3WxSgdqHMgOEKxfjbLABRKZ31Uv+grMRvk8ETHBqsp+Wk9IZYhHqQJjoa7jhdeZaR1D9 MpVRwqKuSMZUUjyBNg4TO+VO5fuS9nmHSv9ut2xjT5fGL2RWhoQ6UsvgTkMh1WBjCK9v CpX9KLBB2IAQT7fftBPZVYY7lX61vKzV0WeFXHGR+l7HjrX7HrdUH+BJxxi+AqlJrgtK DsFkL07JeIcMrwXAcSnQZQRlqDwpoViiSBw28nn59mAVGTqr6OXRfOFra+/fG4esDCL8 BCQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Gin+FC0SDdMXdrk2LD5wa22MubXhrBnnVc3VfWq72Fc=; b=jRsPSY5/tONQXMn3o0OXoIcvuBGXlW4e5PIa4lQU8c01E+L7pB/5ICbbyawoUOhrZC HFUOt2D71bfuY11NlYaxpO3C+q+FtOfzourOmCB3L5jjGHNmz0qKrK00I7XAoe++Wda5 8K7ChOTYC86xBKYbdT3xuk5KTzrmCDLlHjM8QjTqh6H3Zfir6Zfm8D87nTYgYKu/tQLn SB2gJe4XJuw41TuBf4NvvpWYn6JE2PoyJO1v32zdggkaFKmprdeGIjve2cQtndV13l7i eiXRnmUs6DMkL+egtgc9dpzt77ahiR9HVS3zNIaWD+vYhfj6slA01YKl75Xtc+920MmT aLGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fhcDTT69; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 92si2127026wrd.492.2017.09.28.15.56.57; Thu, 28 Sep 2017 15:56:57 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fhcDTT69; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0B82C6899B7; Fri, 29 Sep 2017 01:56:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ACAB86802D8 for ; Fri, 29 Sep 2017 01:56:29 +0300 (EEST) Received: by mail-qk0-f195.google.com with SMTP id o77so1998589qke.2 for ; Thu, 28 Sep 2017 15:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=6J9xhuYlKo6j6pRWHxRcpYc3QHdHLwtlgizWcLserJs=; b=fhcDTT69pVnPHpdo8W1RLNwK+AD9nRBIf/XT/hnFttl/ZpyQOvUc4Ub0ndEC6ru6m8 0h0Hlfs7grawDRIToh9KfVOUJm/x66uCxgLLOLOYjzA0uPrRoKvcgBNUpWbhz9eYhMRr ZUjMnZldSq5d2Y+ojBEnwUF5JDb0X1O2AJzHu3KuVtjNCbVhwIHnthBkolAVn5Be703Y qZplILIi01B411X1PwaQjwQfLvM0GDBvXm6glxg4RcbqrPYfGtBmqLfF2dzdOnWDNvxV tnsbNf6PgCzhracaasn+TsTlh18POLWLwM9e5wiQPs2wVr0QrOCP885ivlVOtEtnA6Dj jTxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=6J9xhuYlKo6j6pRWHxRcpYc3QHdHLwtlgizWcLserJs=; b=qF3O/EockqmVpS2vwesamPNnv9OI/a0Tgu076uxi6+080jOhqwj9D30ls2c0NnRfOC DP2biWYHP9PA73AbkbqoevHGO+uPYFVB3XoT1Ij9AfFqimd4V0erlr4Noxg+D5xNmCq+ fsyyRW3kwn73RwlCiDmgN5Gs1kHJZf43Tq77m+wdR3Ud5GLPvpHkt+W71pDRi8OYel4F 2Dq5WmP0YLIHtCuyhLR5CEhkfH+bE3yPLio3vgP8OKDMkAAgFJ0LYi9gjdL/tv4h+yQt gQps48HVzvpxicVKuKdL8ZMy8IENZ1OOyeso/3QGRIFIlYp2oWb3BIA1gdJI41n8Izuv MWow== X-Gm-Message-State: AMCzsaUPJC/P/As240tDYY0/lh3IwgDsvgZ6lnGZawU/cxPNgZF3kequ 62MvfFaTBMdopLIYllSOX5U0Fg== X-Google-Smtp-Source: AOwi7QBfm5fb4r+osamTbk2EubrOBKSDdtCRsIVMacKWl9Luu7TEpVzeRKuZT8fpN7+CRHcooGfZmQ== X-Received: by 10.55.33.203 with SMTP id f72mr792046qki.176.1506639401636; Thu, 28 Sep 2017 15:56:41 -0700 (PDT) Received: from localhost.localdomain ([181.231.68.242]) by smtp.gmail.com with ESMTPSA id c40sm1815410qte.56.2017.09.28.15.56.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Sep 2017 15:56:41 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Sep 2017 19:56:22 -0300 Message-Id: <20170928225622.3580-2-jamrial@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170928225622.3580-1-jamrial@gmail.com> References: <20170928225622.3580-1-jamrial@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/2 v2] configure: simplify checks for libxcb dependent features X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: James Almer --- configure | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/configure b/configure index ebcf48de20..2750605e75 100755 --- a/configure +++ b/configure @@ -6206,15 +6206,12 @@ if enabled libcdio; then die "ERROR: No usable libcdio/cdparanoia found" fi -enabled libxcb && check_pkg_config libxcb "xcb >= 1.4" xcb/xcb.h xcb_connect +enabled libxcb && use_pkg_config libxcb "xcb >= 1.4" xcb/xcb.h xcb_connect if enabled libxcb; then - enabled libxcb_shm && check_pkg_config libxcb_shm xcb-shm xcb/shm.h xcb_shm_attach - enabled libxcb_shape && check_pkg_config libxcb_shape xcb-shape xcb/shape.h xcb_shape_get_rectangles - enabled libxcb_xfixes && check_pkg_config libxcb_xfixes xcb-xfixes xcb/xfixes.h xcb_xfixes_get_cursor_image - - add_cflags $xcb_cflags $xcb_shm_cflags $xcb_xfixes_cflags $xcb_shape_cflags - add_extralibs $xcb_extralibs $xcb_shm_extralibs $xcb_xfixes_extralibs $xcb_shape_extralibs + enabled libxcb_shm && use_pkg_config libxcb_shm xcb-shm xcb/shm.h xcb_shm_attach + enabled libxcb_shape && use_pkg_config libxcb_shape xcb-shape xcb/shape.h xcb_shape_get_rectangles + enabled libxcb_xfixes && use_pkg_config libxcb_xfixes xcb-xfixes xcb/xfixes.h xcb_xfixes_get_cursor_image else disable libxcb_shm libxcb_shape libxcb_xfixes fi