Root/plplot/patches/008-fix-tcl.patch

1Index: plplot-5.9.7/cmake/modules/tcl-related.cmake
2===================================================================
3--- plplot-5.9.7.orig/cmake/modules/tcl-related.cmake 2011-01-29 12:54:47.000000000 +0100
4+++ plplot-5.9.7/cmake/modules/tcl-related.cmake 2011-01-29 13:04:10.000000000 +0100
5@@ -68,21 +68,21 @@
6       message(STATUS "Looking for tclsh - found")
7       message(STATUS "TCL_TCLSH = ${TCL_TCLSH}")
8     else(TCL_TCLSH)
9- message(STATUS "Looking for tclsh - not found")
10+ message(STATUS "Not looking for tclsh")
11     endif(TCL_TCLSH)
12   else(TCL_FOUND)
13     message(STATUS
14       "Looking for include paths and libraries for Tcl/Tk - not found"
15       )
16   endif(TCL_FOUND)
17- if(TCL_FOUND AND TCL_TCLSH)
18+ if(TCL_FOUND) # AND TCL_TCLSH)
19     message(STATUS "TCL_INCLUDE_PATH = ${TCL_INCLUDE_PATH}")
20     message(STATUS "TCL_LIBRARY = ${TCL_LIBRARY}")
21     if(ENABLE_itcl)
22- execute_process(
23- COMMAND ${TCL_TCLSH} CheckITCL_Available.tcl
24- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/cmake/modules
25- OUTPUT_VARIABLE AVAILABLE_ITCL)
26+# execute_process(
27+# COMMAND ${TCL_TCLSH} CheckITCL_Available.tcl
28+# WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/cmake/modules
29+# OUTPUT_VARIABLE AVAILABLE_ITCL)
30       if(AVAILABLE_ITCL)
31         execute_process(
32     COMMAND ${TCL_TCLSH} GetITCL_Version.tcl
33@@ -176,13 +176,13 @@
34       message(STATUS "ITK_INCLUDE_PATH = ${ITK_INCLUDE_PATH}")
35       message(STATUS "ITK_LIBRARY = ${ITK_LIBRARY}")
36     endif(ENABLE_itk)
37- else(TCL_FOUND AND TCL_TCLSH)
38+ else(TCL_FOUND) # AND TCL_TCLSH)
39     message(STATUS "WARNING: Disabling everything that is Tcl/Tk related")
40     set(ENABLE_tcl OFF CACHE BOOL "Enable Tcl bindings" FORCE)
41     set(ENABLE_itcl OFF CACHE BOOL "Enable incr Tcl interface code" FORCE)
42     set(ENABLE_tk OFF CACHE BOOL "Enable Tk interface code" FORCE)
43     set(ENABLE_itk OFF CACHE BOOL "Enable incr Tk interface code" FORCE)
44- endif(TCL_FOUND AND TCL_TCLSH)
45+ endif(TCL_FOUND) # AND TCL_TCLSH)
46 else(ENABLE_tcl)
47   message(STATUS
48     "ENABLE_tcl is OFF so disabling everything else that "
49

Archive Download this file



interactive