From patchwork Tue Oct 3 13:37:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 44114 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1204:b0:15d:8365:d4b8 with SMTP id v4csp2060839pzf; Tue, 3 Oct 2023 06:37:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGZx95xlEq3URLcA7a22OJFeGKQcaEV64ZyYOka0/Spk7ZXnhK1Pbl3FTnLWNvl5G6pEm4 X-Received: by 2002:a05:6402:1a4d:b0:531:2116:c7dc with SMTP id bf13-20020a0564021a4d00b005312116c7dcmr12612748edb.12.1696340256149; Tue, 03 Oct 2023 06:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696340256; cv=none; d=google.com; s=arc-20160816; b=df/D0Q5vqwIVqtSjDWlVeURXJ1jIC39WHwFLZiTl2ZdV8NeiG4a6CTSihVvWAZCaPn CIB7kv1moM8sua+4l48i8xGzSEfCyj3YYi/JfCMHe2Lb+4VhFY8uRoO4u+ol+joeHO5V VmOK0WGAUiDgYjdA6C4XCFQ0k8QRSXGaDFU8xHXtyesoacwI2ts59IBhI/Ctr+9dpZ7K 1siWWzsXQA8hp2V/pOJMa2RebSOvL9xkJwAdIOJCjHWY1lRC/gkvc8OnoRde30sodbON KCS0dW+RBP4R73rKr3jTrIhWlmkTLah8s5g5XBSVg1QJl7kV+YDCRahqgX6zqC6mVpog mOFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=lG4F78DeS9J5uUo2j2TP+I/BIDk/xGcnLtRY4k5+U/c=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=VyaR7eyPQv9k5sUiXv6VyLU8o9c4WbDIx3BW4PzASrMPaRErFqTOJ7/9StRiY+zUmk JR4x8LHHKI6+IUFnRjI1AelFU0lYmxzvMrxgk8IbNUV1zqbLD6Kepera4njcfRUFVRLc ROrmg2JGVE3l6YFqsLxIdT5Fg+VMBT8qmmKP35AIqsTWkXwvOfLWmofe2FKNZ13wnx7/ ltSQb7a7Hk1GpTw9wPgYefFMUciU3R3Kl5bAFJiS7vw8cOLFaxybT2eo2KGePetGDHov /7IHEQv7SmrCUtuksMRsRQDXh9BJJU8JtXY8LSDjCLq3HsuFuiuwXoqKLKGYoa+Z+n0R 2hVA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id n4-20020a05640204c400b00530c6976757si622133edw.139.2023.10.03.06.37.35; Tue, 03 Oct 2023 06:37:36 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 45B0668CC04; Tue, 3 Oct 2023 16:37:32 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 245F668CA80 for ; Tue, 3 Oct 2023 16:37:25 +0300 (EEST) Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 7E6CA5256 for ; Tue, 3 Oct 2023 15:37:24 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id rrrZ0ekvyVaA for ; Tue, 3 Oct 2023 15:37:23 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 6F89E5216 for ; Tue, 3 Oct 2023 15:37:23 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 4B95D3A0212 for ; Tue, 3 Oct 2023 15:37:23 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 3 Oct 2023 15:37:20 +0200 Message-Id: <20231003133720.8458-1-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: warn when threading is disabled 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: CnQDivAG8Zt7 Explicitly state what the implications of this are. --- configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 8a1a1b8584..5ba2698798 100755 --- a/configure +++ b/configure @@ -7493,6 +7493,12 @@ check_deps $CONFIG_LIST \ enabled threads && ! enabled pthreads && ! enabled atomics_native && die "non pthread threading without atomics not supported, try adding --enable-pthreads or --cpu=i486 or higher if you are on x86" +enabled threads || warn \ + "Threading support was disabled or is not available on this platform." \ + "This means that not only is this build not multi-threaded, but also" \ + "that the libraries from this build MUST NOT be used in a multi-threaded"\ + "environment." + case $target_os in haiku) disable memalign