Ticket UUID: | 1244153 | |||
Title: | Fix tclsh search macros in tcl.m4 | |||
Type: | Patch | Version: | None | |
Submitter: | mdejong | Created on: | 2005-07-25 00:37:19 | |
Subsystem: | 53. Configure and Build Tools | Assigned To: | mdejong | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2005-07-27 02:25:46 | |
Resolution: | None | Closed By: | mdejong | |
Closed on: | 2005-07-26 19:25:46 | |||
Description: |
The SC_PROG_TCLSH macro in the current CVS HEAD and Tcl 8.4.11 release is badly broken. It will search both the PATH and the Tcl build and install dirs for a tclsh executable. Most of the time this works, but if anything goes wrong the user gets really strange errors. Most of the time an extension will only need to run the tclsh in the Tcl build dir. Another Tcl shell installed on the PATH will not work for running test cases. Sometimes an extension will need to run an installed Tcl shell to execute Makefile rules like `make genstubs`. To support both of these uses without getting them mixed up, I have split the functionality into two macros. The SC_PROG_TCLSH macro will search for a tclsh installed on the system PATH for the case where `make genstubs` or something like it needs to be done. The SC_BUILD_TCLSH macro will determine the name of the tclsh executable built in the Tcl build dir and subst the BUILD_TCLSH variable into an extension makefile. This patch will change tcl, tk, tclconfig, sampleextension, and whatever other extensions depend on tclconfig. I am going to check this info the HEAD and the Tcl 8.4 branch. | |||
User Comments: |
mdejong added on 2005-07-25 14:28:45:
File Added - 143148: thread.patch mdejong added on 2005-07-25 14:22:54: File Added - 143147: sampleextension_pkgIndex.patch mdejong added on 2005-07-25 09:41:57: File Added - 143134: sampleextension.patch mdejong added on 2005-07-25 09:40:23: File Added - 143133: tclconfig.patch mdejong added on 2005-07-25 08:33:14: File Added - 143128: tk_84.patch mdejong added on 2005-07-25 08:16:37: File Added - 143127: tcl_84.patch mdejong added on 2005-07-25 08:01:50: File Added - 143124: tk_head.patch mdejong added on 2005-07-25 07:37:22: File Added - 143122: tcl_head.patch |
Attachments:
- thread.patch [download] added by mdejong on 2005-07-25 14:28:45. [details]
- sampleextension_pkgIndex.patch [download] added by mdejong on 2005-07-25 14:22:54. [details]
- sampleextension.patch [download] added by mdejong on 2005-07-25 09:41:56. [details]
- tclconfig.patch [download] added by mdejong on 2005-07-25 09:40:22. [details]
- tk_84.patch [download] added by mdejong on 2005-07-25 08:32:28. [details]
- tcl_84.patch [download] added by mdejong on 2005-07-25 08:16:36. [details]
- tk_head.patch [download] added by mdejong on 2005-07-25 08:01:50. [details]
- tcl_head.patch [download] added by mdejong on 2005-07-25 07:37:19. [details]