From patchwork Sat Oct 29 17:12:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 39044 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:85a8:b0:a2:d5a7:ad9d with SMTP id s40csp1444973pzd; Sat, 29 Oct 2022 10:13:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ivGdyJwWnXFhi+Nz6EcJfP4Zz5/zHDfmOqGwxBG+xWsarh9vrfnvjuXPbdqbsiQSLtDPW X-Received: by 2002:aa7:d3d3:0:b0:462:7435:8b14 with SMTP id o19-20020aa7d3d3000000b0046274358b14mr5018280edr.370.1667063587477; Sat, 29 Oct 2022 10:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667063587; cv=none; d=google.com; s=arc-20160816; b=Yyy9H6Cch3qHYrLA81YkuVy7tH8+D2H09+nzz9J8VxDRtjAuSV6OUCPKK4fcAEfuD5 bqVatZuov/mzmBWClDSF7k6AX7ReyP79fj6l+FKDBo8lY/hkD13d4Q6HdF2WtDPxbA6b JjyAqArmm8CARy0gSC8gyzPF3GB+kOjhfIgpQLWT5cZUiWx6zRwTymJwCJiYreZOifso V+amZqx4MoKLSe+BSITODn9vIdkcYc99kKBWApLFeus5kvRHqjNYMwEDlBBpbRfP5NZ8 /EKOZIIrzaK602/beBnh3/foijjU0hodW8yeyak5kOAjghdfvLVb4KpeCTnuuwBWJ+3W Z2+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=IpEsDtJMfJSSpjPmonf2YyGymGWJYDywbdtEHQ61cqM=; b=nIpq0nPrUtZ2mDX+y64NNxvZu7i2nBnx3jmsCkL+XXrUUE21GWmSvCu/qSYwiZgcnZ nxMcdt0MvOTCCx5JLiETFt0+9e4RxmiaBd8Ryfn4pZVb+CcyKwmR3z9cmpPcIW3BMg4A y02i5q2gwv9HIZ3EGvNrS0qnT32U8wnYLl1YJTZXXck28HficMdEBT8KZbpLNEE4C7mK Kd+isXpsBacvKHvvKhGo70Dhs8lTGh3ID3s5YWuxyBYRnj3AdiOkD9Cdrulf/A6owMkT 5GxJGtQ9Qz4LVB3bo7pz47CFNxXngQ9vd5ezAwOtDEaAK5+CKq2TpOwU8PuNfgDH50VO vHOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org header.s=mail header.b="f/NCXgeF"; 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=rothenpieler.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 16-20020a17090601d000b00781df60a2c8si1682215ejj.342.2022.10.29.10.13.06; Sat, 29 Oct 2022 10:13:07 -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=@rothenpieler.org header.s=mail header.b="f/NCXgeF"; 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=rothenpieler.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7BFF168BC4A; Sat, 29 Oct 2022 20:13:03 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from btbn.de (btbn.de [136.243.74.85]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5A78368BBEA for ; Sat, 29 Oct 2022 20:12:57 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id D2FD433C7AB; Sat, 29 Oct 2022 19:12:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1667063572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=tiP5QDWqUpejXbxlhJZT04yrSrmS537AVcjHPbdZenw=; b=f/NCXgeFybxUNYSLXtr/DPqHjB6c6yawVOeY2SwQv0N+h4cQMcQMcYkkWxgCq0YW5z/0Xd gKilV8PjhR6c3l+9Tu0WGpvXv6SWn8KC4CAmbmLA2Vyf4AD8d/4B1K6pqn0RPx3hQ95epS U2BuAxL6Bl/bh6V4Y6VM5tEnot7dRXehb0Bu9HtaUTskcOlIH7D7DJ0Adr9ZIgsn7/AjNj 58hC7/AAt6JnSMEmDiBeOfL3Qeft+LE1riDs23EUTBOXnPhYyFFxBblxgQYKGB3HvDwkSo rSsQ+r4WX0B0IuIQsj1tIu1WPJw379YVhfq1NPZSu34HF9YAsskfSjyE2NsRHg== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sat, 29 Oct 2022 19:12:44 +0200 Message-Id: <20221029171244.16291-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: add pkg-config check for OpenAL X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Cc: Timo Rothenpieler Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: +ysIkSTHQLWD --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 70c9e41dcc..30f0ce4e26 100755 --- a/configure +++ b/configure @@ -6757,7 +6757,8 @@ enabled mmal && { check_lib mmal interface/mmal/mmal.h mmal_port_co check_lib mmal interface/mmal/mmal.h mmal_port_connect -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host; } || die "ERROR: mmal not found" && check_func_headers interface/mmal/mmal.h "MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS"; } -enabled openal && { { for al_extralibs in "${OPENAL_LIBS}" "-lopenal" "-lOpenAL32"; do +enabled openal && { check_pkg_config openal "openal >= 1.1" "AL/al.h" alGetError || + { for al_extralibs in "${OPENAL_LIBS}" "-lopenal" "-lOpenAL32"; do check_lib openal 'AL/al.h' alGetError "${al_extralibs}" && break; done } || die "ERROR: openal not found"; } && { test_cpp_condition "AL/al.h" "defined(AL_VERSION_1_1)" ||