diff options
author | nijtmans <nijtmans> | 2010-11-17 21:11:26 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-11-17 21:11:26 (GMT) |
commit | c3d465cabdea905bf838dd410d463d6d3f7d07aa (patch) | |
tree | 187867cdd9893e6ff9fc8cc105960663fc60f846 /win/tcl.m4 | |
parent | 0485d0e4befaf40133b0b75778a5a40500bcf1b5 (diff) | |
download | tk-c3d465cabdea905bf838dd410d463d6d3f7d07aa.zip tk-c3d465cabdea905bf838dd410d463d6d3f7d07aa.tar.gz tk-c3d465cabdea905bf838dd410d463d6d3f7d07aa.tar.bz2 |
[FRQ 491789]: "setargv() doesn't support a unicode cmdline" now implemented for mingw-w64
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -477,7 +477,7 @@ file for information about building with Mingw.]) MAKE_EXE="\${CC} -o \[$]@" LIBPREFIX="lib" - extra_cflags="-pipe -DTCL_BROKEN_MAINARGS" + extra_cflags="-pipe" extra_ldflags="-pipe" if test "$ac_cv_cygwin" = "yes"; then @@ -495,6 +495,24 @@ file for information about building with Mingw.]) rm -f ac$$.o ac$$.c fi + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -mwindows -municode -Dmain=xxmain" + AC_CACHE_CHECK(for working -municode linker flag, + ac_cv_municode, + AC_TRY_LINK([ + #include <windows.h> + int APIENTRY wWinMain(HINSTANCE a, HINSTANCE b, LPWSTR c, int d) {return 0;} + ], + [], + ac_cv_municode=yes, + ac_cv_municode=no) + ) + CFLAGS=$hold_cflags + if test "$ac_cv_municode" = "yes" ; then + extra_ldflags="$extra_ldflags -municode" + else + extra_cflags="$extra_cflags -DTCL_BROKEN_MAINARGS" + fi + if test "${SHARED_BUILD}" = "0" ; then # static AC_MSG_RESULT([using static flags]) |