summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-10-06 15:34:17 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-10-06 15:34:17 (GMT)
commit6bd60eb8cdd29b2c58394879f75693df6870cd76 (patch)
treefeb537d06039cca6288ffe9c762ccd8c964bd485 /unix/configure
parentbdefd8ad1c545bc52fae9f1dcc7331716597c107 (diff)
downloadtk-6bd60eb8cdd29b2c58394879f75693df6870cd76.zip
tk-6bd60eb8cdd29b2c58394879f75693df6870cd76.tar.gz
tk-6bd60eb8cdd29b2c58394879f75693df6870cd76.tar.bz2
* unix/configure.in: Added check that version of Tcl header found
by configure matches that of the Tk we wish to build. As long as the Tk sources insist on lockstep releases, Tk's configuration should verify that's what we have. [Bug 749088] * unix/configure: autoconf (2.57)
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/unix/configure b/unix/configure
index 51e5007..4b28601 100755
--- a/unix/configure
+++ b/unix/configure
@@ -3510,6 +3510,16 @@ _ACEOF
fi
+if test "${TCL_VERSION}" != "${TK_VERSION}"; then
+ { { echo "$as_me:$LINENO: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
+Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}.
+Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&5
+echo "$as_me: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
+Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}.
+Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
#--------------------------------------------------------------------
# Recompute the necessary flags to run the compiler
#--------------------------------------------------------------------