diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-04 11:34:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-04 11:34:40 (GMT) |
commit | 35166b815b524f015c27c908257e19e12c0686e1 (patch) | |
tree | 67d1979cac527a90f5dc8b7908afacbfc02ce1dc /win/tcl.m4 | |
parent | a863d3b9c66311d89d572a0bafe3f300af22c9a6 (diff) | |
download | tk-35166b815b524f015c27c908257e19e12c0686e1.zip tk-35166b815b524f015c27c908257e19e12c0686e1.tar.gz tk-35166b815b524f015c27c908257e19e12c0686e1.tar.bz2 |
Sync */tcl.m4 with Tcl
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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= |