diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-04 11:15:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-04 11:15:42 (GMT) |
commit | b16a5a900917cb28a44b7cee5a7252b4ab5a8253 (patch) | |
tree | c8e0050610e9b523b57cef4db838bcb224c35450 /win/configure | |
parent | 7f513ab3af116a0d77cc0cd829993edd3a570b50 (diff) | |
parent | 0d69fc832e95cff706d7bb039e2ff329b8c5d202 (diff) | |
download | tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.zip tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.tar.gz tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.tar.bz2 |
Merge 8.7
Diffstat (limited to 'win/configure')
-rwxr-xr-x | win/configure | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/win/configure b/win/configure index 5ed4a99..90a3254 100755 --- a/win/configure +++ b/win/configure @@ -4301,6 +4301,39 @@ printf "%s\n" "$ac_cv_nolto" >&6; } else CFLAGS_NOLTO="" fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -finput-charset" >&5 +printf %s "checking if the compiler understands -finput-charset... " >&6; } +if test ${tcl_cv_cc_input_charset+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -finput-charset=UTF-8" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + tcl_cv_cc_input_charset=yes +else $as_nop + tcl_cv_cc_input_charset=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$hold_cflags +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_input_charset" >&5 +printf "%s\n" "$tcl_cv_cc_input_charset" >&6; } + if test $tcl_cv_cc_input_charset = yes; then + extra_cflags="$extra_cflags -finput-charset=UTF-8" + fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler flags" >&5 @@ -4364,7 +4397,7 @@ printf "%s\n" "using shared flags" >&6; } CFLAGS_DEBUG=-g CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" - CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -finput-charset=UTF-8" + CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith" LDFLAGS_DEBUG= LDFLAGS_OPTIMIZE= |