changeset 13098:56071a2e8e1b draft

(svn r17599) -Fix: configure script didn't detect icc when CC included path to compiler
author smatz <smatz@openttd.org>
date Mon, 21 Sep 2009 15:47:28 +0000
parents b8fa1dbb5e89
children 235686f53be4
files config.lib
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/config.lib
+++ b/config.lib
@@ -1048,7 +1048,7 @@
 	cxxflags="$4"
 	ldflags="$6"
 
-	if [ `echo $1 | cut -c 1-3` = "icc" ]; then
+	if [ `basename $1 | cut -c 1-3` = "icc" ]; then
 		# Enable some things only for certain ICC versions
 		cc_version=`$1 -dumpversion | cut -c 1-4 | sed s@\\\.@@g`