[FFmpeg-devel] Fixing configure on Solaris

Måns Rullgård mans
Thu Aug 9 10:51:56 CEST 2007


Reimar D?ffinger wrote:
> Hello,
> On Wed, Aug 08, 2007 at 04:36:24PM -0700, Roman Shaposhnick wrote:
>> On Thu, 2007-08-09 at 01:19 +0200, Reimar D?ffinger wrote:
>> > On Thu, Aug 09, 2007 at 12:51:34AM +0200, Diego Biurrun wrote:
>> > > On Wed, Aug 08, 2007 at 02:08:56PM -0700, Roman Shaposhnick wrote:
>> > > > As per grep(1) man page:
>> > > >
>> > > > -----------------------------------------------------------------------
>> > > > Portability note: unlike GNU grep, traditional grep did not conform to
>> > > > POSIX.2, because traditional grep lacked a -q option  and  its  -s
>> > > > option  behaved  like GNU grep's -q option.  Shell scripts intended to
>> > > > be portable to traditional grep should avoid both -q and -s and should
>> > > > redirect output to /dev/null instead.
>> > > > -----------------------------------------------------------------------
>> > > >
>> > > > Ok to apply?
>> > >
>> > > I don't like it.  -q is part of POSIX[1].  Why don't you fix the stone age
>> > > tools in Solaris?
>> >
>> > While I don't really find that > /dev/null is any worse than -q, I also
>> > agree that getting rid of all that non-POSIX cruft is a much more sane
>> > solution. Especially considering our requirements for the shell, which
>> > are much, much harder to fulfill once you leave the "mainstream" OSs.
>>
>>   Well, seems like -q is preferred over >/dev/null, so perhaps we should
>> add the /usr/xpg4/bin/ to the FAQ instead.
>
> Well, for what it matters (which is little), I would somewhat prefer
> ">/dev/null", since it means you need to know about one commandline
> option less for understanding what it does (and I've never seen grep -q
> seen used elsewhere).

I find -q much tidier than redirecting to /dev/null.  Besides, if you don't
know your tools, you have no business mucking about in our configure script ;-)

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list