my first (and trivial) patch to correct tkinter - tk version check.

check was done (erroneously) by calling `python -c ...` and thus not
honoring user's choice in --with-python option to configure

Cheers,

Marco Paolini


diff --git a/src/configure.in b/src/configure.in
index 57aec1d..52cc394 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1289,8 +1289,8 @@ if test "$BUILD_PYTHON" = "yes"; then
 
     AC_MSG_CHECKING([match between tk and Tkinter versions])
 	
-    PYTHON_TK_VERSION="`python -c 'import _tkinter; print _tkinter.TK_VERSION'`"
-    PYTHON_TCL_VERSION="`python -c 'import _tkinter; print _tkinter.TCL_VERSION'`"
+    PYTHON_TK_VERSION="`$PYTHON -c 'import _tkinter; print _tkinter.TK_VERSION'`"
+    PYTHON_TCL_VERSION="`$PYTHON -c 'import _tkinter; print _tkinter.TCL_VERSION'`"
 
     if test "$PYTHON_TCL_VERSION" != "$TCL_VERSION"; then
 	AC_MSG_RESULT([TCL mismatch: $TCL_VERSION vs $PYTHON_TCL_VERSION])

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to