summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-04 11:15:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-04 11:15:42 (GMT)
commitb16a5a900917cb28a44b7cee5a7252b4ab5a8253 (patch)
treec8e0050610e9b523b57cef4db838bcb224c35450 /win/tcl.m4
parent7f513ab3af116a0d77cc0cd829993edd3a570b50 (diff)
parent0d69fc832e95cff706d7bb039e2ff329b8c5d202 (diff)
downloadtcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.zip
tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.tar.gz
tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.tar.bz2
Merge 8.7
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m410
1 files changed, 9 insertions, 1 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 4c7aec3..773f8ae 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -617,6 +617,14 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
else
CFLAGS_NOLTO=""
fi
+ AC_CACHE_CHECK([if the compiler understands -finput-charset],
+ tcl_cv_cc_input_charset, [
+ hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -finput-charset=UTF-8"
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[tcl_cv_cc_input_charset=yes],[tcl_cv_cc_input_charset=no])
+ CFLAGS=$hold_cflags])
+ if test $tcl_cv_cc_input_charset = yes; then
+ extra_cflags="$extra_cflags -finput-charset=UTF-8"
+ fi
fi
AC_MSG_CHECKING([compiler flags])
@@ -677,7 +685,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
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=