--- a/configure
+++ b/configure
@@ -2159,20 +2159,22 @@
 
     # 64 bits distrib ?
     is64=no
-    echo $tclpkgpath | grep -s 64 && is64=yes
+    echo $tclpkgpath | grep -s -q 64 && is64=yes
 
     # root of distribution (2 levels above exec path)
     rootdist=`dirname $tclsh`
     rootdist=`dirname $rootdist`
-
+    echo;echo rootdist $rootdist is64 $is64
     if test $is64 = "yes" ; then
-       candidates="$rootdist/lib64/tcl$tclversion $rootdist/lib64"
+       candidates="$rootdist/lib64/tcl$tclversion $rootdist/lib64 $rootdist/lib/tcl$tclversion $rootdist/lib"
     else
        candidates="$rootdist/lib/tcl$tclversion $rootdist/lib "
     fi
     tclConfigSH=""
     for dir in $candidates; do
-        test -f $dir/tclConfig.sh && tclConfigSH=$dir/tclConfig.sh && break
+    	maybe=$dir/tclConfig.sh
+    	echo testing $maybe
+        test -f  $maybe && tclConfigSH=$dir/tclConfig.sh && break
     done
 fi
 
@@ -2213,7 +2215,7 @@
     rootdist=`dirname $rootdist`
 
     if test $is64 = "yes" ; then
-       candidates="$rootdist/lib64/tk$tkversion $rootdist/lib64"
+       candidates="$rootdist/lib64/tk$tkversion $rootdist/lib64 $rootdist/lib/tk$tkversion $rootdist/lib"
     else
        candidates="$rootdist/lib/tk$tkversion $rootdist/lib "
     fi