From 0a450e8971268d2a4c90ada8fd1936fc1f130bed Mon Sep 17 00:00:00 2001 From: Diego Pino Garcia Date: Sat, 13 Oct 2018 23:01:00 +0200 Subject: [PATCH] Add detection support of TCL versions 8.6 and 8.5 --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index dab04ab..b7dc5ea 100755 --- a/configure +++ b/configure @@ -63,7 +63,7 @@ esac # for TCLPATH_TRY in "/usr/bin/" "/usr/local/bin/" "/bin/" do - for TCLVER_TRY in "8.4" "8.3" "8.2" "8.1" "8.0" + for TCLVER_TRY in "8.6" "8.5" "8.4" "8.3" "8.2" "8.1" "8.0" do if [ -z $TCLSH ] then @@ -98,7 +98,7 @@ then fi if [ -n $USE_TCL ] then - LIBPOSTFIX=`ls -1 /usr/local/lib/ /usr/lib | grep 'libtcl[0-9]' | grep so | sed -e 's/\.so.*//g' -e 's/libtcl//g' | sort -r | head -1` + LIBPOSTFIX=`find /usr/local/lib/ /usr/lib -type f | grep "libtcl[0-9]" | grep so | sed -e 's/.*\///g' -e 's/\.so.*//g' -e 's/libtcl//g' | sort -r | head -1` TCL_LIB="-ltcl${LIBPOSTFIX} -lm -lpthread" fi