summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-24 11:13:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-24 11:13:58 (GMT)
commit399309020d7f8caf7b710a6a41601159cdc32e30 (patch)
treed057fc8c94b4680c01d3b31e85be1b69913fff2e /unix/tcl.m4
parent7caf2af1db913adaf775172aaa508e3b98274967 (diff)
parent03b881a299157cbb9681157c7842b5d33a6a2e40 (diff)
downloadtcl-399309020d7f8caf7b710a6a41601159cdc32e30.zip
tcl-399309020d7f8caf7b710a6a41601159cdc32e30.tar.gz
tcl-399309020d7f8caf7b710a6a41601159cdc32e30.tar.bz2
Merge 8.6
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index fc0cfb7..ce9a8a1 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1877,6 +1877,8 @@ dnl # preprocessing tests use only CPPFLAGS.
AC_CHECK_HEADER(stdbool.h, [AC_DEFINE(HAVE_STDBOOL_H, 1, [Do we have <stdbool.h>?])],)
+ AC_CHECK_FUNCS([posix_spawnp])
+
# FIXME: This subst was left in only because the TCL_DL_LIBS
# entry in tclConfig.sh uses it. It is not clear why someone
# would use TCL_DL_LIBS instead of TCL_LIBS.
@@ -2301,12 +2303,12 @@ AC_DEFUN([SC_TCL_LINK_LIBS], [
AC_DEFUN([SC_TCL_EARLY_FLAG],[
AC_CACHE_VAL([tcl_cv_flag_]translit($1,[A-Z],[a-z]),
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])],
- [tcl_cv_flag_]translit($1,[A-Z],[a-z])=no,[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[[#define ]$1[ 1
+ [tcl_cv_flag_]translit($1,[A-Z],[a-z])=no,[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[[#define ]$1[ ]m4_default([$4],[1])[
]$2]], [[$3]])],
[tcl_cv_flag_]translit($1,[A-Z],[a-z])=yes,
[tcl_cv_flag_]translit($1,[A-Z],[a-z])=no)]))
if test ["x${tcl_cv_flag_]translit($1,[A-Z],[a-z])[}" = "xyes"] ; then
- AC_DEFINE($1, 1, [Add the ]$1[ flag when building])
+ AC_DEFINE($1, m4_default([$4],[1]), [Add the ]$1[ flag when building])
tcl_flags="$tcl_flags $1"
fi
])