Tk Source Code

View Ticket
Login
Ticket UUID: 220923
Title: tk's ./configure --with-tcl opt behavior changed
Type: Bug Version: obsolete: 8.4a1
Submitter: welch Created on: 2000-11-01 01:33:10
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2000-11-17 09:01:43
Resolution: Invalid Closed By: hobbs
    Closed on: 2000-11-17 02:01:43
Description:
OriginalBugID: 5846 Bug
Version: 8.4a1
SubmitDate: '2000-06-07'
LastModified: 
Severity: LOW
Status: UnAssn
Submitter: techsupp
OS: Other
OSVersion: QNX 4.25
Machine: PII 300


Name:
Bruce Edge

ReproducibleScript:
With tcl/tk 8.3, I used the same ./configure options for both tcl and tk.
With 8.4a1 I tried to use:
./configure --prefix=/usr/local/tcl8.4a1  --disable-threads --disable-load --disable-shard --enable-gcc --with-tcl=/usr/local/tcl8.4a1  --with-tk=/usr/local/tcl8.4a1

Tcl built OK, but when running ./configure for tk I got the following error:
 ./configure --prefix=/usr/local/tcl8.4a1  --disable-threads --disable-lo
od --disable-shard --enable-gcc --with-tcl=/usr/local/tcl8.4a1  --with-tk=/usr/local/tcl8.4a1
creating cache ./config.cache
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for limits.h... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for Tcl configuration... configure: error: /usr/local/tcl8.4a1 directory doesn't contain tclConfig.sh

I had to use
./configure --prefix=/usr/local/tcl8.4a1  --disable-threads --disable-load --disable-shard --enable-gcc --with-tcl=/usr/local/tcl8.4a1/lib  --with-tk=/usr/local/tcl8.4a1

note the addition of /lib on the end of the --with-tcl opt.

ObservedBehavior:
I felt that I should not have to specify the ./lib dir under the tcl install path.
I did not have to do so in prev versions.
User Comments: hobbs added on 2000-11-17 09:01:43:
The behavior of --with-tcl in 8.3.2+ to need to point directly to where the tcl build occured.
This provides better support for relocated builds.