@@ -5426,43 +5426,6 @@ else
54265426echo " $ac_t " " no" 1>&6
54275427fi
54285428
5429- for f in /usr/include /usr/include/tcl /usr/include/tcl8.0 /usr/local/include /usr/local/include/tcl /usr/local/include/tcl8.0; do
5430- if test " $TCL_INCDIR " =" no" ; then
5431- ac_safe=` echo" $f /tcl.h" | sed' y%./+-%__p_%' `
5432- echo $ac_n " checking for$f /tcl.h" " ...$ac_c " 1>&6
5433- echo " configure:5434: checking for$f /tcl.h" >&5
5434- if eval " test\" ` echo' $' ' {' ac_cv_header_$ac_safe ' +set}' ` \" = set" ; then
5435- echo $ac_n " (cached)$ac_c " 1>&6
5436- else
5437- cat> conftest.$ac_ext << EOF
5438- #line 5439 "configure"
5439- #include "confdefs.h"
5440- #include <$f /tcl.h>
5441- EOF
5442- ac_try=" $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5443- { (evalecho configure:5444:\" $ac_try \" )1>&5 ; (eval$ac_try )2>&5 ; }
5444- ac_err=` grep -v' ^ *+' conftest.out`
5445- if test -z" $ac_err " ; then
5446- rm -rf conftest*
5447- eval " ac_cv_header_$ac_safe =yes"
5448- else
5449- echo " $ac_err " >&5
5450- echo " configure: failed program was:" >&5
5451- cat conftest.$ac_ext >&5
5452- rm -rf conftest*
5453- eval " ac_cv_header_$ac_safe =no"
5454- fi
5455- rm -f conftest*
5456- fi
5457- if eval " test\" ` echo' $ac_cv_header_' $ac_safe ` \" = yes" ; then
5458- echo " $ac_t " " yes" 1>&6
5459- TCL_INCDIR=$f
5460- else
5461- echo " $ac_t " " no" 1>&6
5462- fi
5463-
5464- fi
5465- done
54665429if test " $TCL_INCDIR " =" no" ; then
54675430echo " configure: warning: tcl support disabled; tcl.h missing" 1>&2
54685431USE_TCL=
@@ -5473,25 +5436,23 @@ fi
54735436if test " $USE_TCL " =" true"
54745437then
54755438TCL_LIB=
5476- for f in tcl tcl8.0 tcl80; do
5477- if test -z" $TCL_LIB " ; then
5478- echo $ac_n " checking for main in -l$f " " ...$ac_c " 1>&6
5479- echo " configure:5480: checking for main in -l$f " >&5
5480- ac_lib_var=` echo$f ' _' main| sed' y%./+-%__p_%' `
5439+ echo $ac_n " checking for main in -ltcl" " ...$ac_c " 1>&6
5440+ echo " configure:5441: checking for main in -ltcl" >&5
5441+ ac_lib_var=` echo tcl' _' main| sed' y%./+-%__p_%' `
54815442if eval " test\" ` echo' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
54825443echo $ac_n " (cached)$ac_c " 1>&6
54835444else
54845445 ac_save_LIBS=" $LIBS "
5485- LIBS=" -l $f $LIBS "
5446+ LIBS=" -ltcl $LIBS "
54865447cat> conftest.$ac_ext << EOF
5487- #line5488 "configure"
5448+ #line5449 "configure"
54885449#include "confdefs.h"
54895450
54905451int main() {
54915452main()
54925453; return 0; }
54935454EOF
5494- if { (evalecho configure:5495 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
5455+ if { (evalecho configure:5456 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
54955456 rm -rf conftest*
54965457eval " ac_cv_lib_$ac_lib_var =yes"
54975458else
@@ -5506,13 +5467,11 @@ LIBS="$ac_save_LIBS"
55065467fi
55075468if eval " test\" ` echo' $ac_cv_lib_' $ac_lib_var ` \" = yes" ; then
55085469echo " $ac_t " " yes" 1>&6
5509- TCL_LIB=$f
5470+ TCL_LIB=tcl
55105471else
55115472echo " $ac_t " " no" 1>&6
55125473fi
55135474
5514- fi
5515- done
55165475if test -z" $TCL_LIB " ; then
55175476echo " configure: warning: tcl support disabled; Tcl library missing" 1>&2
55185477USE_TCL=
@@ -5536,17 +5495,17 @@ CPPFLAGS="$CPPFLAGS $X_CFLAGS -I$TCL_INCDIR"
55365495TK_INCDIR=no
55375496ac_safe=` echo" tk.h" | sed' y%./+-%__p_%' `
55385497echo $ac_n " checking for tk.h" " ...$ac_c " 1>&6
5539- echo " configure:5540 : checking for tk.h" >&5
5498+ echo " configure:5499 : checking for tk.h" >&5
55405499if eval " test\" ` echo' $' ' {' ac_cv_header_$ac_safe ' +set}' ` \" = set" ; then
55415500echo $ac_n " (cached)$ac_c " 1>&6
55425501else
55435502 cat> conftest.$ac_ext << EOF
5544- #line5545 "configure"
5503+ #line5504 "configure"
55455504#include "confdefs.h"
55465505#include <tk.h>
55475506EOF
55485507ac_try=" $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5549- { (evalecho configure:5550 :\" $ac_try \" )1>&5 ; (eval$ac_try )2>&5 ; }
5508+ { (evalecho configure:5509 :\" $ac_try \" )1>&5 ; (eval$ac_try )2>&5 ; }
55505509ac_err=` grep -v' ^ *+' conftest.out`
55515510if test -z" $ac_err " ; then
55525511 rm -rf conftest*
@@ -5567,43 +5526,6 @@ else
55675526echo " $ac_t " " no" 1>&6
55685527fi
55695528
5570- for f in /usr/include /usr/include/tk /usr/include/tk8.0 /usr/local/include /usr/local/include/tk /usr/local/include/tk8.0; do
5571- if test " $TK_INCDIR " =" no" ; then
5572- ac_safe=` echo" $f /tk.h" | sed' y%./+-%__p_%' `
5573- echo $ac_n " checking for$f /tk.h" " ...$ac_c " 1>&6
5574- echo " configure:5575: checking for$f /tk.h" >&5
5575- if eval " test\" ` echo' $' ' {' ac_cv_header_$ac_safe ' +set}' ` \" = set" ; then
5576- echo $ac_n " (cached)$ac_c " 1>&6
5577- else
5578- cat> conftest.$ac_ext << EOF
5579- #line 5580 "configure"
5580- #include "confdefs.h"
5581- #include <$f /tk.h>
5582- EOF
5583- ac_try=" $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5584- { (evalecho configure:5585:\" $ac_try \" )1>&5 ; (eval$ac_try )2>&5 ; }
5585- ac_err=` grep -v' ^ *+' conftest.out`
5586- if test -z" $ac_err " ; then
5587- rm -rf conftest*
5588- eval " ac_cv_header_$ac_safe =yes"
5589- else
5590- echo " $ac_err " >&5
5591- echo " configure: failed program was:" >&5
5592- cat conftest.$ac_ext >&5
5593- rm -rf conftest*
5594- eval " ac_cv_header_$ac_safe =no"
5595- fi
5596- rm -f conftest*
5597- fi
5598- if eval " test\" ` echo' $ac_cv_header_' $ac_safe ` \" = yes" ; then
5599- echo " $ac_t " " yes" 1>&6
5600- TK_INCDIR=$f
5601- else
5602- echo " $ac_t " " no" 1>&6
5603- fi
5604-
5605- fi
5606- done
56075529if test " $TK_INCDIR " =" no" ; then
56085530echo " configure: warning: tcl support disabled; tk.h missing" 1>&2
56095531USE_TCL=
@@ -5619,25 +5541,23 @@ fi
56195541if test " $USE_TCL " =" true"
56205542then
56215543TK_LIB=
5622- for f in tk tk8.0 tk80; do
5623- if test -z" $TK_LIB " ; then
5624- echo $ac_n " checking for main in -l$f " " ...$ac_c " 1>&6
5625- echo " configure:5626: checking for main in -l$f " >&5
5626- ac_lib_var=` echo$f ' _' main| sed' y%./+-%__p_%' `
5544+ echo $ac_n " checking for main in -ltk" " ...$ac_c " 1>&6
5545+ echo " configure:5546: checking for main in -ltk" >&5
5546+ ac_lib_var=` echo tk' _' main| sed' y%./+-%__p_%' `
56275547if eval " test\" ` echo' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
56285548echo $ac_n " (cached)$ac_c " 1>&6
56295549else
56305550 ac_save_LIBS=" $LIBS "
5631- LIBS=" -l $f $LIBS "
5551+ LIBS=" -ltk $LIBS "
56325552cat> conftest.$ac_ext << EOF
5633- #line5634 "configure"
5553+ #line5554 "configure"
56345554#include "confdefs.h"
56355555
56365556int main() {
56375557main()
56385558; return 0; }
56395559EOF
5640- if { (evalecho configure:5641 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
5560+ if { (evalecho configure:5561 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
56415561 rm -rf conftest*
56425562eval " ac_cv_lib_$ac_lib_var =yes"
56435563else
@@ -5652,13 +5572,11 @@ LIBS="$ac_save_LIBS"
56525572fi
56535573if eval " test\" ` echo' $ac_cv_lib_' $ac_lib_var ` \" = yes" ; then
56545574echo " $ac_t " " yes" 1>&6
5655- TK_LIB=$f
5575+ TK_LIB=tk
56565576else
56575577echo " $ac_t " " no" 1>&6
56585578fi
56595579
5660- fi
5661- done
56625580if test -z" $TK_LIB " ; then
56635581echo " configure: warning: tcl support disabled; Tk library missing" 1>&2
56645582USE_TCL=