[FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode
andreas.cadhalpun at googlemail.com
Tue Jan 27 12:57:47 CET 2015
On 27.01.2015 08:44, Hendrik Leppkes wrote:
> Checking help output with grep? Really?
> Did you ever stop to check how all the other checks work in configure?
> Usually it tries to run the command and see if it fails, instead of doing
> some arbitrary grep which may result in some other matches somewhere.
Yes, I did look at configure and just copied what I found:
if $ar 2>&1 | grep -q Microsoft; then
elif $ar 2>&1 | grep -q 'Texas Instruments'; then
elif $ar 2>&1 | grep -q 'Usage: ar.*-X.*any'; then
arflags='-Xany -r -c'
Maybe you can convert that into a proper check instead of complaining
about me copying this approach.
More information about the ffmpeg-devel