[FFmpeg-devel] [PATCH 3/5] configure: improve gzip check

Ramiro Polla ramiro.polla at gmail.com
Tue May 27 19:12:47 EEST 2025


Hi Jacob,

On Tue, May 27, 2025 at 8:55 AM Jacob Lifshay <programmerjake at gmail.com> wrote:
> On Mon, May 26, 2025 at 6:34 PM Ramiro Polla <ramiro.polla at gmail.com> wrote:
> > -[ -x "$(command -v gzip)" ] && enable gzip
> > +gzip -V > /dev/null 2>&1 && enable gzip
>
> idk if you intend it to build with busybox gzip, but busybox gzip
> doesn't support the -V option, a better command could be something like:
> gzip < /dev/null > /dev/null 2>&1 && enable gzip
> since that does work with busybox too.

Thanks. I hadn't thought about gzip implementations that don't support -V.

What about the following?
echo | gzip -c > /dev/null 2>&1 && enable gzip

Ramiro


More information about the ffmpeg-devel mailing list