diff options
author | nijtmans <nijtmans> | 2010-11-17 21:06:44 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-11-17 21:06:44 (GMT) |
commit | 66874c3272b1f3fb2e69b0f83937da390ea963ff (patch) | |
tree | cc9ca0cffc4ff1c8ffab382d855ab705e0015948 /win/tcl.m4 | |
parent | 6662869a0b47d18184a6f1a08a674ca20e663c13 (diff) | |
download | tcl-66874c3272b1f3fb2e69b0f83937da390ea963ff.zip tcl-66874c3272b1f3fb2e69b0f83937da390ea963ff.tar.gz tcl-66874c3272b1f3fb2e69b0f83937da390ea963ff.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]) |