[Scummvm-cvs-logs] SF.net SVN: scummvm: [20888] scummvm/trunk/configure
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Feb 25 12:37:00 CET 2006
Revision: 20888
Author: fingolfin
Date: 2006-02-25 12:36:23 -0800 (Sat, 25 Feb 2006)
ViewCVS: http://svn.sourceforge.net/scummvm?rev=20888&view=rev
Log Message:
-----------
Improved patch for bug #1436165 (no more warnings from GNU tail about outdated parameters)
Modified Paths:
--------------
scummvm/trunk/configure
Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure 2006-02-25 20:34:13 UTC (rev 20887)
+++ scummvm/trunk/configure 2006-02-25 20:36:23 UTC (rev 20888)
@@ -561,7 +561,20 @@
echocheck "compiler version"
-cxx_name=`( $cc -v ) 2>&1 | tail -1l | cut -d ' ' -f 1`
+case $_host_os in
+ # On Solaris, use Unix-compliant tail
+ solaris*)
+ tail=/usr/xpg4/bin/tail
+ ;;
+
+ # All other OSes: use the tail in PATH
+ *)
+ tail=tail
+ ;;
+esac
+
+
+cxx_name=`( $cc -v ) 2>&1 | $tail -n 1 | cut -d ' ' -f 1`
cxx_version=`( $CXX -dumpversion ) 2>&1`
if test "$?" -gt 0; then
cxx_version="not found"
More information about the Scummvm-git-logs
mailing list