From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id E78634B867 for ; Tue, 27 May 2025 01:33:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 8E82768CC08; Tue, 27 May 2025 04:33:38 +0300 (EEST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id E8BC468C613 for ; Tue, 27 May 2025 04:33:31 +0300 (EEST) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-442ec3ce724so22988795e9.0 for ; Mon, 26 May 2025 18:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748309610; x=1748914410; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=at8+k2/7x/OCDK0Gi7QAlu3qvL1xeGHFwkwb2r94FCs=; b=QELJxvzyOm6M/mWmhkkLiGLvmBd0ScDJfVcgGrd/huSyGdTL2RyDngrm+fh7lAGysX AMJvUUJ0IVkinqW07yYEK9ygIlmVC6cNW2hhNXBGo6YmLQ6MovsUtaAjtuvwaQfC1zQk 6A7aZ6bDxTX8iJUp5GBlH7g0uT06Fh4zmBg1naqHwuIzDFc9bq2lfxsn4FjUPKb5ZOTx 5T9r0jM6tbS7aJAHBbd9NPEQ793pu+ZI2i2VKNYib3QP6hOVjE1ziPG/1+AFgnylyy4d TMvnwGTeu4RO3oAs8Am+LQlJd5tDh38ZThLe/w0M/crHSaH4BKDEA2DzXGIHqyQwtmWT +YCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748309610; x=1748914410; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=at8+k2/7x/OCDK0Gi7QAlu3qvL1xeGHFwkwb2r94FCs=; b=ewwcN13CWPow40mGiepP8x8nQOldEuZpKYYbKvROGpTpk4p+J+TIvUA41i13BCF3rG 0rBpxA/7A0O03NjysZExm1Pnee0y/Tfi/SZop3jpfv+IDQSJUKurz+cY443HDeBiwuv9 iOTs3LosTCa1zaRra9DIxZP56erlmnMISSogjSqonLNTe6hTje0EuSFfM1RI+Ygs4YMg 5hsxaqaFZHQ0iBQANzTrh7mI6dvQms0hOKhCT4VI3uWvI+EVzGC2zro9uQ4n+w8/7eEo 7FAT9k178WMm+utU8dHGQTk7/jWbLSdfWtMsAqYj4XGsi7h3XUisU2+mj+5UyHw89MHQ q62A== X-Gm-Message-State: AOJu0YxYyvBETRGn2WxRfFAnYLuzYj6fON3GDj1HvxcYljpR7OG13PP0 pcxKwLMMkHPdRji5PudHooezb7xRHYieI/Xu7iG6EObt55X9UDSoSU/zvwA183zJYQg= X-Gm-Gg: ASbGncukpw1OdSWAEPo+qj+fvFa7HPA2oWigI0ZsSnPzp/VmrN5oNYUUllug2B21rKV EQ2W3q6qcLeo77EClc4E0LAFgfQDg4J+q6VZIxy6GfWn306BPeoxGqVONavhDCCLBN/AgDU2k65 4QFlW2OvUtP4Zc2rqwFUs4f4DsLlep7flwJdL9K9VvDWHXxT6umwJs/qeSBsHuBY4mzW481UkQV +IrICRT6/+N6k+wbqP/3J/0mib76yPTJbTD/9Qz0bsJH5a/5pDJAJo+OnOsPn0OzFqeozjxzNn9 q0BFPK87xDYwEXh3zpCWU1jYktwX5XIoqi3soYPvSSFLYQmbV2Whc+z6revJkiSSRCUFbe+9nPZ zddq4ZNPSBoNsWecvZ32iIUSImRRNo/8= X-Google-Smtp-Source: AGHT+IF/vqb1VC4FGmAjpHngnF5aoJKcriXoE3r/oXEQg/xsBdPnByuSCnVarmA7U1ckbYPOQQF8kw== X-Received: by 2002:a05:600c:4fc9:b0:43c:ec4c:25b4 with SMTP id 5b1f17b1804b1-44c91ad70d0mr125263985e9.10.1748309610268; Mon, 26 May 2025 18:33:30 -0700 (PDT) Received: from walden.local (20.238-74-193.fia-dyn.isp.proximus.be. [193.74.238.20]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-447f3dd99absm248886645e9.37.2025.05.26.18.33.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 May 2025 18:33:29 -0700 (PDT) From: Ramiro Polla To: ffmpeg-devel@ffmpeg.org Date: Tue, 27 May 2025 03:33:24 +0200 Message-Id: <20250527013328.308477-1-ramiro.polla@gmail.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/5] configure: remove build-time check for gzip support in zlib 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: We currently test at build-time whether zlib supports decoding gzip. This is not needed for the build to succeed, since only the gzip command is necessary to perform compression at build-time. Presumably this check will help the user by not enabling compression at build-time if their system won't be able to decompress at runtime. But there are no guarantees that the system where the build is made is the same system where it will run. The build system could support gzip in zlib, but not the system at runtime, or the other way around. Realistically, the chances of there being a system where zlib does not support gzip are very slim. It is safe to assume that zlib will support gzip. This commit changes the dependency for support of compressed resources and ptx files to normal zlib support, and the existence of the gzip command. --- configure | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/configure b/configure index 3730b0524c..79c4fcf327 100755 --- a/configure +++ b/configure @@ -2548,7 +2548,6 @@ HAVE_LIST=" posix_ioctl texi2html xmllint - zlib_gzip openvino2 " @@ -6895,19 +6894,11 @@ enabled zlib && { check_pkg_config zlib zlib "zlib.h" zlibVersion || enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2 enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma -enabled zlib && test_exec $zlib_extralibs < -int main(void) { - if (zlibCompileFlags() & (1 << 17)) return 1; - return 0; -} -EOF - [ -x "$(command -v gzip)" ] && enable gzip -enabled zlib_gzip && enabled gzip || disable ptx_compression +enabled zlib && enabled gzip || disable ptx_compression -enabled zlib_gzip && enabled gzip || disable resource_compression +enabled zlib && enabled gzip || disable resource_compression # On some systems dynamic loading requires no extra linker flags check_lib libdl dlfcn.h "dlopen dlsym" || check_lib libdl dlfcn.h "dlopen dlsym" -ldl -- 2.39.5 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".