[MPlayer-dev-eng] Configure confused by compilercache [PATCH]
D Richard Felker III
dalias at aerifal.cx
Fri Aug 22 19:45:21 CEST 2003
On Thu, Aug 21, 2003 at 01:10:45AM +0200, Pierre Lombard wrote:
> * Arne Driescher <driescher at mpi-magdeburg.mpg.de> [2003-08-19 16:37]:
> > Problem:
> > =======
> > A compiler cache as the one from
> > http://www.erikyyy.de/compilercache/
> > adds additional (stupide) output lines before the output of
> > gcc -dumpversion
> > The ./configure script expects a single line output and
> > fails therfore to detect the correct gcc version.
> > Solution:
> > =======
> > As is already done in the cc_name macro use only the
> > last output line by changing
> > cc_version=`( $_cc -dumpversion ) 2>&1`
> > to
> > cc_version=`( $_cc -dumpversion ) 2>&1 | tail -1`
> > The attached trivial patch does exactly this.
> FWIW, 'ccache' does not show these issues.
> Btw, it should be 'tail -n 1' as 'tail -1' is to be deprecated soon.
No, this is complete bullshit. tail -1 is supported by every tail ever
written, and will always be supported unless users set idiotic
BITCH_ABOUT_AGE_OLD_STANDARD_FEATURES_NOT_REQUIRED_BY_POSIX or other
stupid environment variables. On the other hand, tail -n 1 ONLY works
on POSIX-compliant tails, of which there are very few. Anyway, tail -n
1 is not acceptable in mplayer.
More information about the MPlayer-dev-eng