From patchwork Fri Jun 30 18:06:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Constantino X-Patchwork-Id: 4166 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp6068276vsb; Fri, 30 Jun 2017 11:13:14 -0700 (PDT) X-Received: by 10.28.211.10 with SMTP id k10mr6311056wmg.117.1498846394592; Fri, 30 Jun 2017 11:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498846394; cv=none; d=google.com; s=arc-20160816; b=gr6IRmV0InIlxSDNZFKn+KCp2pGzqr2MOyS+W/XccIe3rtCAfnuqgh7meZXr/DJXns lAOSRwdH0j0RqKQ18NtXT39QmVCVx7urWU4QCddeMkTEvZzcO3keGDv23E2gdQ+t4cMX zh+oFZ0+c0Z3VbXddXBuSh6hNas98buGfyjtojGAZjNq6eeSwJI1n/4QpC5eWAP1bi9Y c4qAp0fxqdRi2DVdJ+RRQrOkP9Ql8vgaKTOselHRKW2TA97/yCYrTjCCexbNpR/gRp2N M1XbSnR44wpM1NMT8vXzTywG25A4LrJHSYUL/SZjKwkh822cbFcxJOw9FhJyDUbFeLFj 95lA== 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=ghJYBzTRpvHHIRyO5m70WqDwmZbyV6tf1o5prucJZNw=; b=wAK8nLVZ7ejU8L5P+ph6Q9kjEDTpGUrT59fNrI4ma6pA3Bf25VEM+73rBwhO7Zsmht +toO8VzSBEWSXm1m4zSdha01zitsjvkx3lM5whd/tTWqd5mmqeurtGtZs0uxEi5BAHGm wjg5Y4tno8RhcGAdAkoaxKwBOtHEXF26MR6CK1KdX9UCf8PLu/24Tjf81qtcYzYFGamn PdUC8LfYoGFS93MlU36lLZaDWBJ+wcSRy/EjKMLs4lsULfOUZSGrTrdU5d3ltd4mjXgU Wxl8Hn9xKHO0M9H6veVBK3bLQ9V2q9SsHo+zft7VeCq4ZLhwrlLIb6ItSRs2tZ088dL3 Gorw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=eqY4JWeA; 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 5si4465727wmu.48.2017.06.30.11.13.13; Fri, 30 Jun 2017 11:13:14 -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=eqY4JWeA; 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 2474968A0F7; Fri, 30 Jun 2017 21:13:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0935C689FD4 for ; Fri, 30 Jun 2017 21:13:03 +0300 (EEST) Received: by mail-wr0-f180.google.com with SMTP id k67so207455054wrc.2 for ; Fri, 30 Jun 2017 11:13:04 -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=WAfhEraGqt/pw9bvfLIZTYKTTltX1PMfR+Ir+RTh6B0=; b=eqY4JWeACWIZJy/wCUppmuurjfFLrujtxhgZx/9qoFTTsk8D1mE9wQgodQBQFlC7C4 RSz9WVzQK7s38f4thWKJJ0yqdYpM1OvKENbIO6lMZA9b8rjAM1HxlP8Qbr8SmRTFtFJq X5TW1Cz3FnxNNRW1ilYnbL7Dp1glrng4N9iRp0Q7WuEn6/dqndZfXhdZPoKQ/sDa5SNd 8ueIW9k/0/ti9uzVnLNve2hAwHL4UoODw9oSCAjOEkRIBXVprY+z4xbqRWETQZLAybfX 5HDJr8tg2I5BetpBVQxJg3ned0fooX4uwoQdyCOjxqooZl/uYtGPxPLOFkhtmH3unAkp y7lw== 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=WAfhEraGqt/pw9bvfLIZTYKTTltX1PMfR+Ir+RTh6B0=; b=MxMTzRM4SatVHMCRsOytvk2CZ4UNRWaX+9p4qHp3hvys+yog6S7ZGXalnC6Dx45izH ODUhMNmzCkAVAG3rdd/8wCokwDh/GQRabq+AUHVeLHK4zsPchWlDD0NwLmHFbo+iBFFy 4VvA1Y1XKE2XBhGbGtnslS1Z4FXpftGRAi+oxrhLUA07dK+r2GFx1EomgcLRXreVsv/H oU+OMcn2P3s2vGZ+x/xorFcbdsu5yAJ82mQqFHlgJ+9syHYCe1aZpD/16r2ydwSIBpSd q5NFJGNJWF+z7D3e41UWYZBHrRp4ILqPkMq/Kv/bqtvBLfEaGbKKXE5Mj3cMd9o3Nse3 Tayw== X-Gm-Message-State: AKS2vOwv7309GSuJc5jnoSyT524Zo577mwfLEJIz/px+d5AhlWOk8cAd MkU36jaCcCiuxL7HMcE= X-Received: by 10.223.133.67 with SMTP id 61mr30377243wrh.30.1498846017913; Fri, 30 Jun 2017 11:06:57 -0700 (PDT) Received: from localhost.localdomain (10.246.114.89.rev.vodafone.pt. [89.114.246.10]) by smtp.gmail.com with ESMTPSA id p140sm16022504wmb.28.2017.06.30.11.06.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jun 2017 11:06:57 -0700 (PDT) From: Ricardo Constantino To: ffmpeg-devel@ffmpeg.org Date: Fri, 30 Jun 2017 19:06:45 +0100 Message-Id: <20170630180645.11192-1-wiiaboo@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170624124717.8424-1-wiiaboo@gmail.com> References: <20170624124717.8424-1-wiiaboo@gmail.com> Subject: [FFmpeg-devel] [PATCH] configure: require pkg-config for libvorbis 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" libvorbis comes with pkg-config files since at least v1.0.1, way back in 2003. The extra check is needed for shared builds, as the pkg-config file for vorbisenc doesn't include vorbis and ogg if --static isn't used. The previous check could be also used as an extra fallback in case pkg-config isn't installed. --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 282114d268..54c1c93ecc 100755 --- a/configure +++ b/configure @@ -5902,7 +5902,10 @@ enabled libtwolame && require libtwolame twolame.h twolame_init -ltwolame enabled libv4l2 && require_pkg_config libv4l2 libv4l2.h v4l2_ioctl enabled libvidstab && require_pkg_config "vidstab >= 0.98" vid.stab/libvidstab.h vsMotionDetectInit enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_init -lvo-amrwbenc -enabled libvorbis && require libvorbis vorbis/vorbisenc.h vorbis_info_init -lvorbisenc -lvorbis -logg +enabled libvorbis && { use_pkg_config vorbisenc vorbis/vorbisenc.h vorbis_info_init || + { check_pkg_config vorbisenc vorbis/vorbisenc.h vorbis_info_init -lvorbis -logg && + add_cflags $vorbisenc_cflags && add_extralibs $vorbisenc_extralibs -lvorbis -logg; } || + die "ERROR: libvorbis not found."; } enabled libvpx && { enabled libvpx_vp8_decoder && {