Ticket UUID: | 544203 | |||
Title: | mingw support | |||
Type: | Patch | Version: | None | |
Submitter: | fandom | Created on: | 2002-04-15 14:42:19 | |
Subsystem: | 70. Sample Extension | Assigned To: | hobbs | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2002-04-23 06:18:31 | |
Resolution: | Fixed | Closed By: | hobbs | |
Closed on: | 2002-04-22 23:18:31 | |||
Description: |
The patch I submitted a couple weeks ago to make the sample extension compile with mingw has a little problem. The mingw test uses cc.exe to try to compile the test, this program is not present so the test fails. In the computer where I developed the patch I had created cc.exe as a shortcut to gcc.exe so I didn't notice the problem. As far as I can see there is no code in tcl.m4 or configure.in to create this test, so if this comes from a macro in autoconf, the simplest way to solve it is to tell the user to do: CC=gcc ./configure, so I have updated the README.cygwin accordingly. I have also added a comment in the file on how to use autoconf with cygwin. On the other hand I noticed that 'make distclean' didn't delete the 'pkgIndex.tcl' file, I don't know if this is deliberate, so I modified 'makefile.in' to delete it. | |||
User Comments: |
hobbs added on 2002-04-23 06:18:31:
Logged In: YES user_id=72656 I have instead removed the AC_CYGWIN macro call, the only thing that prevented using autoconf 2.5x. This only enabled us to warn people against using cygwin's gcc, and I don't think there was enough value there to prevent being able to use autoconf 2.5x. fandom added on 2002-04-20 05:58:17: Logged In: YES user_id=316500 I also think the comment in README.cygwin about autoconf should be changed to something like the following. Before I noticed they also included version 2.13, I lost a lot of time generating the 'configure' scripts in a Linux box and then taking them to Windows. I would like to think I am not the only one capable of being such a fool. Authoring TEA extensions If you are authoring a TEA extension, you will also want the GNU autoconf package. The Cygnus tools now include two versions of autoconf: v2.13 and v2.52, with the latest version being invoked by default, TEA scripts don't yet work with it, so you will have to invoke version 2.13 explicitely with the command: /usr/autotool/stable/bin/autoconf hobbs added on 2002-04-20 03:42:19: Logged In: YES user_id=72656 I made the 1-line change in README.cygwin and added pkgIndex.tcl to the CLEANFILES arg in configure.in. Is that all that was necessary? mdejong added on 2002-04-19 02:14:08: Logged In: YES user_id=90858 I am sending this one to hobbs since he has been doing some work on sampleextension to get it working with mingw. fandom added on 2002-04-15 21:42:20: File Added - 21224: sampleextension.patch |
Attachments:
- sampleextension.patch [download] added by fandom on 2002-04-15 21:42:19. [details]