--- configure.orig	Tue Jun 14 02:31:59 2005
+++ configure	Thu Jun 30 19:17:27 2005
@@ -9743,7 +9743,7 @@
 
     if test "$withval" != "no" >/dev/null 2>&1 ; then
 	FreeType2_TT_BUILD_INC="$withval/src/truetype"
-	if test "${FreeType2_TT_BUILD_INC/ttobjs.h:0:1}" != "/" ; then
+	if test `echo ${FreeType2_TT_BUILD_INC}|sed 's/\(.\).*/\1/'` != "/" ; then
		FreeType2_TT_BUILD_INC=`pwd`/$FreeType2_TT_BUILD_INC
	fi
 	echo "$as_me:$LINENO: checking for valid freetype tree" >&5
