[MPlayer-dev-eng] Configure confused by compilercache [PATCH]

Arne Driescher driescher at mpi-magdeburg.mpg.de
Tue Aug 19 16:33:17 CEST 2003


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.

Greetings,
Arne


-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.patch
Type: text/x-diff
Size: 582 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030819/ecb39ba8/attachment.patch>


More information about the MPlayer-dev-eng mailing list