From patchwork Fri Jun 23 00:53:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Constantino X-Patchwork-Id: 4086 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.22.4 with SMTP id 4csp313679vsw; Thu, 22 Jun 2017 17:53:57 -0700 (PDT) X-Received: by 10.28.189.67 with SMTP id n64mr3540467wmf.115.1498179237024; Thu, 22 Jun 2017 17:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498179236; cv=none; d=google.com; s=arc-20160816; b=UUkikV2wfJ8ePYYoZ2kWrFA5+HlLijUnkVyFHqQSt5CdQqpIOwr2legThuNRYc2UnF VAfhknoe25FZCIqsQUIRW7OkWFeaBtzpdIrGr0Vfomyyii39HHnVJszQsEQuV3T0W2SU akTUcXfeLSgkLpxlchATvMH4O4DCytITexUjnMOLwsZJPCFciDgNSVo/uwCw0MuVWjOI yOKg5fRj+52gzG6l/2gFzJpyOlRc8AQ/OPZQL5DM7pKOZrhiO7V3m7JAqi4ReAwu8cF4 uQTwK/uUL55kKJ7gSxuxMoHycABewQ3zHZ+pcsZSPnAcF+j+CaQ3OKn0EVfTt2+dPxsO D2jw== 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=F9h3aftSAaYkFPAqD8sdyT8ESyrvMl4Pmwn56VqOO9Y=; b=MzM3U2P79oRslIeimp96aiqrAiTcLJFHmb38YidLaTb/JvhsiIkRaO7IiF2J4SaG9p EDshs/x/g5ZBBgD1vJAN77R8t3u1gljhZI2s+1b/WMiDCvmuQcX+CulDUSC4pRUClSjK IKQxI2XeXvJdnGeRYIkOCLjwQiaWgIwxMBCR2vyizovEYSC1/bNHqhqAFa9K2u8rPBlS NAIjrkPylKCrUlu0VSYnznwMpXNCqFRgMWLquyWpjJ6PjR1gJegXMhAWrGeacVqY5/vN 9zmbFhtAIeyXzPnnPEyli4sGf1Szc9aCP/lPecl2OyOdnEclvJdw8fkE0oFTAmlEuGMm lVaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=rOLp/PRe; 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 80si2674222wmt.84.2017.06.22.17.53.56; Thu, 22 Jun 2017 17:53:56 -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.b=rOLp/PRe; 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 A39C268A495; Fri, 23 Jun 2017 03:53:54 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B5CC868A463 for ; Fri, 23 Jun 2017 03:53:48 +0300 (EEST) Received: by mail-wr0-f170.google.com with SMTP id c11so44833702wrc.3 for ; Thu, 22 Jun 2017 17:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=J2Ww/19+JL+/DH8f/iPOLpKkhCJc8wggYVA9distl6Y=; b=rOLp/PReh+JEAbn3enrHmWCPywudu0TeTbQYQAyJdfZj/CmhZPTDt3pEeVnB5ooGpy wi610d+ULg216BwtboDIbjnr/MQfngBGdkKHYU6hyzOKByEJBsz42lvD7S1E6QXUAfQI EU0WppaxkUcgH+40TfyL45jRlBSoyIUfqWT1oeJl8uNz64DMbItv7AWU/lnoqXf3nfsL eOTnZ4X9bgDH5aTDRiniYf90xOjSV3ih9KI+AmCI/b246djkn2lmX/XniC9s9deqU3bT C9BufQz+8+l1gEbfplcIs7kd7lGzv6ZkhJSd7b5tYyh2i+BFq8sLZXkhNO6DsvwoT1xR 0YxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=J2Ww/19+JL+/DH8f/iPOLpKkhCJc8wggYVA9distl6Y=; b=Ys/6NWrKvNeIdYVwxHHET4zP+NLbnvyz1cIyH3xOHHB/lPF8emjzAa0/80NQVtF4vv spXEsGz4LNcvLsgSv3nFYk2knKnOIMfOAKgZYxJqNVV+wAe53aEDojca8NWadq+p2RVS aU5ZsjohYp8VDIl5o5aI8qfuiMeI4vt+ZKhn69opW9+M+4e2xUhoTxfXJxBfu/2IzCX8 cg7eeX83OfjmrzUZjyRIR8XNno5qTu8r7Eqgp5yaiOgkVKmMzk5qZCEFNOEq19/x44UR TlaCrIR7l6Baj684Z3LhJVBoqv2BSr4Ob7sjys9CPbWNnoXxhQb4u/C/zZDgaAnyUtIo xT7Q== X-Gm-Message-State: AKS2vOzbGeS3Lay5+uFpaGnSvU/bwivXohrgv/pDyD1gbQKNITytoSfs IPg50ULRPvvoFs03B9s= X-Received: by 10.223.146.166 with SMTP id 35mr3980327wrn.104.1498179228041; Thu, 22 Jun 2017 17:53:48 -0700 (PDT) Received: from localhost.localdomain (10.246.114.89.rev.vodafone.pt. [89.114.246.10]) by smtp.gmail.com with ESMTPSA id l70sm2462411wmd.3.2017.06.22.17.53.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jun 2017 17:53:47 -0700 (PDT) From: Ricardo Constantino To: ffmpeg-devel@ffmpeg.org Date: Fri, 23 Jun 2017 01:53:37 +0100 Message-Id: <20170623005337.13528-1-wiiaboo@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170623002804.8924-1-wiiaboo@gmail.com> References: <20170623002804.8924-1-wiiaboo@gmail.com> Subject: [FFmpeg-devel] [PATCH] configure: use pkg-config for libgme, if available 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" The pkg-config file is relatively new (2013), so some distros might not have it yet. And the -lstdc++ being required for the static lib is only present since the last release in December 2016. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index dd9608540e..74f8ba4c57 100755 --- a/configure +++ b/configure @@ -5826,7 +5826,8 @@ enabled fontconfig && enable libfontconfig enabled libfontconfig && require_pkg_config fontconfig "fontconfig/fontconfig.h" FcInit enabled libfreetype && require_pkg_config freetype2 "ft2build.h FT_FREETYPE_H" FT_Init_FreeType enabled libfribidi && require_pkg_config fribidi fribidi.h fribidi_version_info -enabled libgme && require libgme gme/gme.h gme_new_emu -lgme -lstdc++ +enabled libgme && { use_pkg_config libgme gme/gme.h gme_new_emu || + require libgme gme/gme.h gme_new_emu -lgme -lstdc++; } enabled libgsm && { for gsm_hdr in "gsm.h" "gsm/gsm.h"; do check_lib libgsm "${gsm_hdr}" gsm_create -lgsm && break; done || die "ERROR: libgsm not found"; }