summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-08-20 12:48:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-08-20 12:48:30 (GMT)
commit01fbecbaaf77dd7e80ed055550874cf8b4a04c00 (patch)
tree521a362b471330df6d50b874790c4de4dc45b291 /unix/configure
parentb7d695159389d80f23edaff43638646ab40c2adc (diff)
parent94b338844e5af1659858a5446714c65fcbaecf54 (diff)
downloadtcl-01fbecbaaf77dd7e80ed055550874cf8b4a04c00.zip
tcl-01fbecbaaf77dd7e80ed055550874cf8b4a04c00.tar.gz
tcl-01fbecbaaf77dd7e80ed055550874cf8b4a04c00.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure35
1 files changed, 35 insertions, 0 deletions
diff --git a/unix/configure b/unix/configure
index fdf2adf..be51ba9 100755
--- a/unix/configure
+++ b/unix/configure
@@ -9183,6 +9183,41 @@ printf "%s\n" "#define NO_FD_SET 1" >>confdefs.h
fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
+printf %s "checking for pselect... " >&6; }
+if test ${tcl_cv_func_pselect+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+int
+main (void)
+{
+void *func = pselect;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ tcl_cv_func_pselect=yes
+else $as_nop
+ tcl_cv_func_pselect=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_func_pselect" >&5
+printf "%s\n" "$tcl_cv_func_pselect" >&6; }
+tcl_ok=$tcl_cv_func_pselect
+if test $tcl_ok = yes; then
+
+printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
+
+fi
+
#------------------------------------------------------------------------
# Options for the notifier. Checks for epoll(7) on Linux, and
# kqueue(2) on {DragonFly,Free,Net,Open}BSD