Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-01-23
05:07 • Closed ticket [1407517fff]: TEA_CONFIG_CFLAGS does not recognize mingw plus ... artifact: 413277007c user: hobbs
2006-01-16
17:41 • New ticket [1407517fff]. artifact: c57eceea0a user: wart

TEA_CONFIG_CFLAGS does not recognize mingw

Closed / Fixed1407517fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-01-16 17:41:46
I'm running the tcl.m4 from the CVS head on WinXP using
mingw 0.8.

I tried using this with the sample extension and got
the following warning when running 'configure':

"Can't figure out how to do dynamic loading or shared
libraries on this system."

Walking through the TEA_CONFIG_CFLAGS macro uncovered
the problem.  In the giant 'case' statement for each
platform, the branch for windows is listed as
'windows', which is not a possible value.

AC_DEFUN(TEA_CONFIG_CFLAGS, [
...
if test "${TEA_PLATFORM}" = "windows" ; then
   # TEA_PLATFORM is either 'windows' or 'unix'
   ...
fi
...
# This sets $system to 'uname -s'-'uname -r',
# which on mingw is:
# MINGW32_NT-5.1-1.0.8(0.46/3/2)
TEA_CONFIG_SYSTEM
...
case $system in
    windows)
        ...
    AIX-*)
        ...
esac


The branch for windows should instead be:

case $system in
   
*win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*)
hobbsplain2006-01-23 05:07:56
Logged In: YES 
user_id=72656

Fixed by correcting botched TEA_CONFIG_SYSTEM change.
Log in (anonymous is fine) to add a comment.