TEA (tclconfig) Source Code

Check-in [0823b5e65a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:mingw cross-compile: fix 2nd mistake - invalid tcl_platform retrieved, resp. overwritten if cross-compiled in unix (tcl_platform should be windows in mingw)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | sebres-fix-cross-comp-mingw
Files: files | file ages | folders
SHA3-256: 0823b5e65a20c56577ce3d26934f83f9e467261cb4acc48dc463fba0962d44a8
User & Date: sebres 2019-01-09 14:48:46.335
Context
2019-01-17
09:45
fixes configure error "Windows/CE and GCC builds incompatible" as well as proper tcl_platform (if cross-compiled in unix) by mingw build. check-in: 8b4bbb54c8 user: sebres tags: trunk
2019-01-09
14:48
mingw cross-compile: fix 2nd mistake - invalid tcl_platform retrieved, resp. overwritten if cross-compiled in unix (tcl_platform should be windows in mingw) Closed-Leaf check-in: 0823b5e65a user: sebres tags: sebres-fix-cross-comp-mingw
13:44
fix cross-compile build for windows(mingw) from *nix: set default wince to off for all platforms exepting windows, take care the option (--enable-wince/--disable-wince) check-in: 66ccb87578 user: sebres tags: sebres-fix-cross-comp-mingw
Changes
Unified Diff Ignore Whitespace Patch
Changes to tcl.m4.
436
437
438
439
440
441
442

443
444
445
446
447
448
449
450
    AC_MSG_CHECKING([platform])
    hold_cc=$CC; CC="$TCL_CC"
    AC_TRY_COMPILE(,[
	    #ifdef _WIN32
		#error win32
	    #endif
	], [

	    TEA_PLATFORM="unix"
	    CYGPATH=echo
	], [
	    TEA_PLATFORM="windows"
	    AC_CHECK_PROG(CYGPATH, cygpath, cygpath -m, echo)	]
    )
    CC=$hold_cc
    AC_MSG_RESULT($TEA_PLATFORM)







>
|







436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
    AC_MSG_CHECKING([platform])
    hold_cc=$CC; CC="$TCL_CC"
    AC_TRY_COMPILE(,[
	    #ifdef _WIN32
		#error win32
	    #endif
	], [
	    # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
	    TEA_PLATFORM="${TEA_PLATFORM-unix}"
	    CYGPATH=echo
	], [
	    TEA_PLATFORM="windows"
	    AC_CHECK_PROG(CYGPATH, cygpath, cygpath -m, echo)	]
    )
    CC=$hold_cc
    AC_MSG_RESULT($TEA_PLATFORM)